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 serhiy.storchaka
Recipients RhinosF1, epaine, serhiy.storchaka, shippo_
Date 2020-12-27.20:48:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609102127.02.0.990870760975.issue42750@roundup.psfhosted.org>
In-reply-to
Content
You confuse variable and its value. tkinter.Variable is not a data container like list. It is a reference to external resource, Tcl variable, which contains value. If different Variable instances refer to different Tcl variables, they are different, even if values of these variables at some moment were equal. If they refer to the same Tcl variable, they can be considered equal. Details are different for different Tkinter classes: Font instances with the same name are equal, Variable instances with the same name are equal only if they have the same class (so that StringVar and IntVar are always different), Image and Widget instances with the same name are different. But in any case references to different resources are different.

Use analogy of Path instead of list. The Path object refers to external resource (file). Path objects with the same path are equal. Path objects with different paths are different, even if files have the same content.

I didn't close the шіігу right away because I was trying to explain his mistake to Ivo. There is no inconsistency, there is just a misunderstanding. Anyway, I'm closing it now.
History
Date User Action Args
2020-12-27 20:48:47serhiy.storchakasetrecipients: + serhiy.storchaka, epaine, shippo_, RhinosF1
2020-12-27 20:48:47serhiy.storchakasetmessageid: <1609102127.02.0.990870760975.issue42750@roundup.psfhosted.org>
2020-12-27 20:48:47serhiy.storchakalinkissue42750 messages
2020-12-27 20:48:46serhiy.storchakacreate