[Python-Dev] Details of "import lock" in 3.3
Jesus Cea
jcea at jcea.es
Fri Sep 6 18:02:32 CEST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/09/13 17:43, Antoine Pitrou wrote:
> 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
Yes,
>
I was depending of the global import lock in my code. I am
evaluating impact under Python 3.3.
Under Python 3.3, metafinder/loader MUST BE reentrant?.
Can they count on the fact that they could be called concurrently by
multiple threads but NOT for importing the SAME module?.
- --
Jesús Cea Avión _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
Twitter: @jcea _/_/ _/_/ _/_/_/_/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQCVAwUBUin8mJlgi5GaxT1NAQKQugP+N0VI/BhqKvcaUicu7YMR09VhFweoAE6h
c48ltOrhlWhrauYc9XYeoEPZ2ksl9/SDnMt83cE+qLunSBltkSbYv3j/0LXWyHwk
ZGjzh5vQGTgCu3/2iCkFWq/tSAsgUfk8YfbwPQK82L1gs7LbC5vt2jWlRwNQs0nl
2Sr1Nlbf7og=
=GL0o
-----END PGP SIGNATURE-----
More information about the Python-Dev
mailing list