[Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
Ben Hoyt
benhoyt at gmail.com
Tue Jul 22 04:32:10 CEST 2014
More information about the Python-Dev mailing list
Tue Jul 22 04:32:10 CEST 2014
- Previous message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Next message: [Python-Dev] Bluetooth 4.0 support in "socket" module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> We should mimic os.stat() and os.stat_result: os.stat_result symbol > exists in the os namespace, but the type constructor is not > documented. No need for extra protection like not adding the type in > the os module, or adding a "_" prefix to the name. Yeah, that works for me. > By the way, it's possible to serialize a stat_result with pickle. That makes sense, as stat_result is basically just a tuple and a bit extra. I wonder if it should be possible to pickle DirEntry objects? I'm thinking possibly not. If so, would it cache the stat or file type info? -Ben
- Previous message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Next message: [Python-Dev] Bluetooth 4.0 support in "socket" module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list