Antoine Pitrou <pit...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue9260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com