[Python-Dev] Remaining decisions on PEP 471 -- os.scandir()

Ethan Furman ethan at stoneleaf.us
Tue Jul 15 18:41:40 CEST 2014


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
>  follow_symlinks=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~


More information about the Python-Dev mailing list