Brett Cannon <br...@python.org> added the comment:

Just to comment on the import lock issue when importing from within a function, 
it is a problem. If an import triggers the launching of a thread which calls 
these functions that have an import inside of them, deadlock will occur. This 
has been reported as an issue before so people do it (unfortunately).

Importing within functions is something to be avoided when possible.

----------

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

Reply via email to