[Python-Dev] Remaining decisions on PEP 471 -- os.scandir() (original) (raw)
Ethan Furman ethan at stoneleaf.us
Tue Jul 15 18:41:40 CEST 2014
- Previous message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Next message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 07/14/2014 11:25 PM, Victor Stinner wrote:
Again: remove any garantee about the cache in the definitions of methods, instead copy the doc from os.path and os. Add a global remark saying that most methods don't need any syscall in general, except for symlinks (with followsymlinks=True).
I don't understand what you're saying here. The fact that DirEnrry.is_xxx will use cached values must be documented, or our users will waste huge amounts of time trying to figure out why an unknowingly cached value is no longer matching the current status.
Ethan
- Previous message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Next message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]