| Store | Cart

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

From: Ben Hoyt <benh...@gmail.com>
Mon, 21 Jul 2014 22:32:10 -0400
> 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
_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Ben Hoyt Jul 14, 2014 12:33 am
Tim Delaney Jul 14, 2014 12:52 am
Nick Coghlan Jul 14, 2014 02:17 am
Tim Delaney Jul 14, 2014 02:29 am
Akira Li Jul 14, 2014 05:51 am
Ben Hoyt Jul 15, 2014 02:48 am
Ethan Furman Jul 15, 2014 03:00 am
Ben Hoyt Jul 15, 2014 12:01 pm
Victor Stinner Jul 15, 2014 06:25 am
Ben Hoyt Jul 15, 2014 12:05 pm
Ethan Furman Jul 15, 2014 04:41 pm
Nick Coghlan Jul 15, 2014 11:24 am
Ben Hoyt Jul 15, 2014 12:19 pm
Paul Moore Jul 15, 2014 12:31 pm
Victor Stinner Jul 14, 2014 08:25 am
Ethan Furman Jul 14, 2014 04:52 am
Victor Stinner Jul 14, 2014 08:31 am
Victor Stinner Jul 14, 2014 08:18 am
Ben Hoyt Jul 14, 2014 12:27 pm
Antoine Pitrou Jul 20, 2014 04:50 pm
Ben Hoyt Jul 20, 2014 09:34 pm
Brett Cannon Jul 20, 2014 10:35 pm
Antoine Pitrou Jul 20, 2014 11:45 pm
Ben Hoyt Jul 21, 2014 03:32 pm
Victor Stinner Jul 21, 2014 03:57 pm
Steve Dower Jul 21, 2014 04:11 pm
Nick Coghlan Jul 21, 2014 09:37 pm
Ben Hoyt Jul 21, 2014 04:48 pm
Victor Stinner Jul 21, 2014 10:39 pm
Ben Hoyt Jul 22, 2014 02:32 am
Messages in this thread