[Python-Dev] Bootstrap issue: "select" is compiled "too late"

Brett Cannon brett at python.org
Thu Oct 4 16:24:31 CEST 2012


On Thu, Oct 4, 2012 at 9:17 AM, Jesus Cea <jcea at jcea.es> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 04/10/12 14:34, Benjamin Peterson wrote:
> > 2012/10/4 Jesus Cea <jcea at jcea.es>:
> >> Any suggestion about how to solve this?
> >
> > Easy solutions include somehow removing the dependence on
> > subprocess or moving the import of subprocess into the function
> > that uses it.
>
> Moving the import into the function that needs it solves the issue.
>
> See <http://hg.python.org/cpython/rev/d6d908dc11f2>.
>
> Thanks for the suggestion, Benjamin.


This used to be a no-no, though, because if someone called that function in
a thread during an import it would deadlock. Now Antoine reworked the locks
so I don't know if this is still true or not.

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


More information about the Python-Dev mailing list