[Python-Dev] Details of "import lock" in 3.3

Antoine Pitrou solipsis at pitrou.net
Fri Sep 6 17:43:13 CEST 2013


Le Fri, 06 Sep 2013 17:08:28 +0200,
Jesus Cea <jcea at jcea.es> a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> With importlib and other recent changes, what are the current details
> of "import lock"?. That is, the lock/locks held when Python code does
> "import", specially in the case of multithreading. Is that documented
> anywhere?

Quick summary here:
http://docs.python.org/3/whatsnew/3.3.html#a-finer-grained-import-lock

Otherwise, I'm afraid the source code has the most information, e.g.:
http://hg.python.org/cpython/file/1d88d04aade2/Lib/importlib/_bootstrap.py#l124

Regards

Antoine.




More information about the Python-Dev mailing list