Amaury Forgeot d'Arc <[email protected]> added the comment: It's not difficult to do, but tedious. When tcl is not threaded, a lock needs to be acquired/released for all tcl operations. See all the "ENTER_TCL" macros in _tkinter.c. In our implementation, this could be replaced by a "with self._lock_tcl():" block, which would be a no-op when tcl is threaded. At least with cffi we don't have to bother about the GIL (and Py_BEGIN_ALLOW_THREADS and the tcl_tstate variable)
---------- nosy: +amaury ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1597> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-issue
