[Python-Dev] Updates to PEP 471, the os.scandir() proposal (original) (raw)
Ben Hoyt benhoyt at gmail.com
Tue Jul 8 21:34:26 CEST 2014
- Previous message: [Python-Dev] Updates to PEP 471, the os.scandir() proposal
- Next message: [Python-Dev] Updates to PEP 471, the os.scandir() proposal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Updates to PEP 471, the os.scandir() proposal
- Next message: [Python-Dev] Updates to PEP 471, the os.scandir() proposal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]