[issue3638] tkinter.mainloop() is meaningless and crash: remove it

Martin v. Löwis report at bugs.python.org
Sat Jan 3 17:04:31 CET 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

> This is all true but the dispatching isn't used there actually.
> dispatching is being used in a polling manner to try to catch the
> thread running the tcl interpreter which someone tried to call into,
> the code then proceeds to do what you described.

Right. If the main thread doesn't actually invoke mainloop(), the
Tcl events don't get dispatched, and the RPC system breaks down,
effectively leading to a deadlock. To prevent application
breakage during startup, a grace period is added in case applications
create threads before starting the mainloop.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3638>
_______________________________________


More information about the Python-bugs-list mailing list