[Python-Dev] PEP 428: Pathlib -> stat caching
Victor Stinner
victor.stinner at gmail.com
Mon Sep 16 22:00:53 CEST 2013
2013/9/16 Brett Cannon <brett at python.org>:
> Any reason why stat() can't get a keyword-only cached=True argument instead?
> Or have stat() never cache() but stat_cache() always so that people can
> choose if they want fresh or cached based on API and not whether some
> library happened to make a decision for them?
I also prefer a single function, but only if the default is
cached=False. Caching by default can be surprising and unexpected.
Victor
More information about the Python-Dev
mailing list