[issue14067] Avoid more stat() calls in importlib

Brett Cannon report at bugs.python.org
Tue Feb 21 00:20:15 CET 2012


Brett Cannon <brett at python.org> added the comment:

On Mon, Feb 20, 2012 at 18:06, Antoine Pitrou <report at bugs.python.org>wrote:

>
> Antoine Pitrou <pitrou at free.fr> added the comment:
>
> > The patch uses the time module which is not a built-in, so it breaks
> > bootstrapping by directly importing a module, and an extension at
> > that. At best you could switch to a modified _FileFinder after
> > importlib is initially running and able to import extension modules.
>
> Yup, as I said it's more of a proof-of-concept.
> (I was actually surprised that time is not a built-in module)

Yeah, I had to double-check myself.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14067>
_______________________________________


More information about the Python-bugs-list mailing list