[issue18809] Expose mtime check in importlib.machinery.FileFinder

2013-11-01 Thread Brett Cannon
Brett Cannon added the comment: So I tried extracting out the check by implementing a path_mtime() method on FileFinder, but then I realized it would simply be easier to abstract out _os.stat() to _path_stat() and let people cache stat calls at the global level, which would have a side-effect

[issue18809] Expose mtime check in importlib.machinery.FileFinder

2013-08-22 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> test needed type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue18809] Expose mtime check in importlib.machinery.FileFinder

2013-08-22 Thread Brett Cannon
New submission from Brett Cannon: If you have enough control over your environment you really don't need to waste a stat call checking if the directory has been modified. That makes the idea of having the check of whether the directory has changed be exposed publicly a useful idea (code: http