[issue14067] Avoid more stat() calls in importlib

Antoine Pitrou report at bugs.python.org
Tue Feb 21 19:33:46 CET 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> While I don't think the delay in noticing filesystem changes is
> reasonable as the default behaviour, it might be interesting to see how 
> tricky it would be to create a custom importer (for either meta_path or 
> path_hooks) that did this.

Mmmh. Then I think it would be simpler to expose a global option to disable freshness checks. That said, it has to be activated as early as possible to be effective, which doesn't make it very practical as an opt-in setting.

----------

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


More information about the Python-bugs-list mailing list