STINNER Victor <victor.stin...@haypocalc.com> added the comment: > > can't we raise a RuntimeError on a deadlock?
(I mean: deadlock on the import lock) > Deadlock detection is difficult, and probably impossible if the > involved locks don't use the same underlying mechanism If it is impossible to detect deadlocks, can't we raise an exception if two threads try to import a module at the same time? (change completly how the import "lock" is handled) Antoine changed recently the io module to raise a RuntimeError on reentrant calls in the io module (io.Buffered*.*()): #10478. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10923> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com