[issue19216] stat cache for import bootstrap

Brett Cannon report at bugs.python.org
Thu Oct 10 22:34:10 CEST 2013


Brett Cannon added the comment:

importlib/_bootstrap.py is importlib, period, so there is no separation of what is used to start Python and what is used after interpreter startup is completed.

As for adding a 'stat' argument to the loaders, it's possible but as always it comes down to whether it will break someone or not. Since loaders do not necessarily execute immediately you are running the risk of a very stale cached stat object. Plus Eric Snow has his PEP where the API in terms of loader __init__ signature so you would want to look into that.

----------

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


More information about the Python-bugs-list mailing list