[Python-Dev] PEP 428: Pathlib -> stat caching (original) (raw)
Victor Stinner victor.stinner at gmail.com
Mon Sep 16 22:00:53 CEST 2013
- Previous message: [Python-Dev] PEP 428: Pathlib -> stat caching
- Next message: [Python-Dev] PEP 428: Pathlib -> stat caching
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 statcache() 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
- Previous message: [Python-Dev] PEP 428: Pathlib -> stat caching
- Next message: [Python-Dev] PEP 428: Pathlib -> stat caching
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]