[Python-Dev] Updates to PEP 471, the os.scandir() proposal
Ben Hoyt
benhoyt at gmail.com
Tue Jul 8 21:34:26 CEST 2014
> Better to just have the attributes be None if they were not fetched. None
> is better than hasattr anyway, at least in the respect of not having to
> catch exceptions to function properly.
The thing is, is_dir() and lstat() are not attributes (for a good
reason). Please read the relevant "Rejected ideas" sections and let us
know what you think. :-)
-Ben
More information about the Python-Dev
mailing list