[issue1733757] RuntimeWarning: tp_compare didn't return -1 or -2
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Apr 2 19:43:40 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
The "funny" errors around trace & exceptions have been corrected with
issue1265.
The remaining problem is a livelock: when the interpreter exits,
threading.Thread.__delete is called, and this calls
"_active_limbo_lock.acquire".
But the sys.settrace is still enabled... and threading.currentThread()
can also call "_active_limbo_lock.acquire" when the main thread cannot
be found...
A solution could be to clear sys.settrace when closing the interpreter.
----------
nosy: +amaury.forgeotdarc
_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1733757>
_____________________________________
More information about the Python-bugs-list
mailing list