[issue9548] locale can be imported at startup but relies on too many library modules

Brett Cannon report at bugs.python.org
Tue Aug 10 01:44:41 CEST 2010


Brett Cannon <brett at 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 <report at bugs.python.org>
<http://bugs.python.org/issue9548>
_______________________________________


More information about the Python-bugs-list mailing list