[Python-Dev] Details of "import lock" in 3.3
solipsis at pitrou.net
Fri Sep 6 19:06:21 CEST 2013
On Fri, 06 Sep 2013 18:02:32 +0200
Jesus Cea <jcea at jcea.es> wrote:
> -----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
> 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?.
No, they shouldn't have to. Normally, the global import lock is still
held at this point. However, it is best to check the code if you want
to be sure.
More information about the Python-Dev