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 Javier Dehesa
Recipients Javier Dehesa, louielu, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-06-16.11:19:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497611991.76.0.874015123528.issue30678@psf.upfronthosting.co.za>
In-reply-to
Content
With the additional hint of garbage collection I have found now a number of examples of this behaviour (e.g. https://stackoverflow.com/questions/7439432/python-themed-tkinter-entry-variable-will-not-set).
However, I haven't found actual documentation warning of this, so I'm not sure if this is really expected or just something people has gotten used to live with. One could argue that you normally wouldn't need a variable in the first place if you are not keeping a reference to it, but I'm not sure what is the benefit of having a (I assume) weak reference in the widget. Maybe there are solid technical reasons but, from what I have seen, it seems to have caused more than one confusion.
History
Date User Action Args
2017-06-16 11:19:51Javier Dehesasetrecipients: + Javier Dehesa, paul.moore, tim.golden, zach.ware, steve.dower, louielu
2017-06-16 11:19:51Javier Dehesasetmessageid: <1497611991.76.0.874015123528.issue30678@psf.upfronthosting.co.za>
2017-06-16 11:19:51Javier Dehesalinkissue30678 messages
2017-06-16 11:19:51Javier Dehesacreate