This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author shippo_
Recipients epaine, serhiy.storchaka, shippo_
Date 2020-12-26.15:06:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608995176.07.0.806534213214.issue42750@roundup.psfhosted.org>
In-reply-to
Content
Greetings!

I just noticed:

>>> import tkinter as tk
>>> root = tk.Tk()

>>> str_0 = tk.StringVar()
>>> str_0.set("same value")

>>> str_1 = tk.StringVar()
>>> str_1.set("same value")

So:

>>> str_0.get() == str_1.get()
True

But:

>>> str_0 == str_1
False

So, maybe a Variable should be compared by value, and not by identity (._name) as currently? (please view attached) Does it make sense?
History
Date User Action Args
2020-12-26 15:06:16shippo_setrecipients: + shippo_, serhiy.storchaka, epaine
2020-12-26 15:06:16shippo_setmessageid: <1608995176.07.0.806534213214.issue42750@roundup.psfhosted.org>
2020-12-26 15:06:16shippo_linkissue42750 messages
2020-12-26 15:06:15shippo_create