[issue9260] A finer grained import lock
Antoine Pitrou
report at bugs.python.org
Wed Jul 14 21:34:35 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> So I say we don't worry about loaders being thread-safe. If __import__
> handles the locking for a specific module then it will hold the lock
> on behalf of the loader.
Yes but what happens if two different modules are imported from two
different threads, and handled by the same loader? The loader could have
global structures which rely on serialization of imports for
consistency.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9260>
_______________________________________
More information about the Python-bugs-list
mailing list