Nick Coghlan <ncogh...@gmail.com> added the comment:

OK, finally tracked down some of the history here. Issue 1567 is the one where 
Christian developed the relevant patch which was then committed as r59678.

Issue 7980 is also potentially related (although that's apparently a Mac OS X 
crash involving time.strptime rather than an ImportError exception).

I think what it boils down to is that this approach to the import deadlock 
problem is far too pessimistic. If any other import is going on when an 
implicit import is triggered using this function makes the assumption that the 
other thread is going to be waiting for the current thread at some point, so 
this thread can't afford to wait for the import lock and should throw an 
exception instead. That's going to disallow a lot of perfectly legitimate 
imports, particularly when the Python interpreter is embedded in a 
multi-threaded application rather than running standalone.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8098>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to