[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

Richard Sheridan report at bugs.python.org
Wed Jul 15 15:54:27 EDT 2020


Richard Sheridan <richard.sheridan at gmail.com> added the comment:

I stumbled into this in another project and I want to +1 the uncommenting solution. The problem occurs on __del__ rather than specifically in the gc somewhere (it happens when refs drop to zero too), so I wouldn't worry too much about killing the garbage collector.

It also looks like fixing the python part would be about 3 lines of non-user-facing code with weakrefs. Are you sure that's no-go?

Would it be any help to roll this fix into https://bugs.python.org/issue41176 and https://github.com/python/cpython/pull/21299 since we fixed the quit() docs there?

----------
nosy: +Richard Sheridan

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39093>
_______________________________________


More information about the Python-bugs-list mailing list