[New-bugs-announce] [issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder
report at bugs.python.org
Thu Aug 22 16:49:46 CEST 2013
New submission from Brett Cannon:
If the check was done based on simply the format what was being searched for (e.g. just assume it's a file if "module.py" exists in the directory) then a couple of stat calls per search could be saved.
If that is deemed to dangerous due to backwards-compatibility, at least extract an API so people can skip the stat calls if they know they are not going to do something as silly as have something named module.py that is not a file.
components: Library (Lib)
stage: test needed
title: Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder
versions: Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce