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 taleinat
Recipients Spacekiwigames, epaine, eryksun, pablogsal, serhiy.storchaka, taleinat, terry.reedy
Date 2021-05-17.07:54:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621238074.3.0.279450414179.issue40452@roundup.psfhosted.org>
In-reply-to
Content
> What if register Tcl_Finalize as an atexit callback?

Precisely that was tried a long time ago (2002?) and decided against, as can be seen by the comment left behind at the end of _tkinter.c:

#if 0
    /* This was not a good idea; through <Destroy> bindings,
       Tcl_Finalize() may invoke Python code but at that point the
       interpreter and thread state have already been destroyed! */
    Py_AtExit(Tcl_Finalize);
#endif
History
Date User Action Args
2021-05-17 07:54:34taleinatsetrecipients: + taleinat, terry.reedy, serhiy.storchaka, eryksun, pablogsal, epaine, Spacekiwigames
2021-05-17 07:54:34taleinatsetmessageid: <1621238074.3.0.279450414179.issue40452@roundup.psfhosted.org>
2021-05-17 07:54:34taleinatlinkissue40452 messages
2021-05-17 07:54:34taleinatcreate