A finer-grained import lock

Antoine Pitrou <[email protected]>
Newsgroups gmane.comp.python.import
Message-ID <[email protected]>
Hello,

This patch fixes the long-standing issue of deadlocks with a
combination of starting threads and importing modules. It also makes
PyImport_ImportModuleNoBlock() basically useless. The idea is to have a
separate lock for each module being imported, and only use the global
import lock around a couple of operations (such as creating the module
locks themselves).

http://bugs.python.org/issue9260

Regards

Antoine.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.