[Python-Dev] Dealing with import lock deadlock in Import Hooks

Brett Cannon brett at python.org
Mon Aug 12 16:23:12 CEST 2013


On Mon, Aug 12, 2013 at 5:12 AM, Arnaud Fontaine <arnaud.fontaine at nexedi.com
> wrote:

> Victor Stinner <victor.stinner at gmail.com> writes:
>
> >>I'm currently working on implementing Import Hooks (PEP302) with Python
> >> 2.7 to be able to import modules whose code is in ZODB. However, I have
> >> stumbled upon a widely known issue about import deadlock[0][1] (...)
> >
> > In Python 3.3, the import machinery has been rewritten (importlib is used
> > by default) and the import lock is now per module, no more global.
>
> Yes, I saw the bug report and its patch implementing the import lock per
> module (mentioned in my initial email) and watched the presentation by
> Brett Cannon (BTW, I could not find the diagram explained during the
> presentation, anyone knows if it's available somewhere?).
>

http://prezi.com/mqptpza9xbic/?utm_campaign=share&utm_medium=copy

-Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130812/887c4838/attachment.html>


More information about the Python-Dev mailing list