Tal Einat <taleinat+pyt...@gmail.com> added the comment:
> 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40452> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com