| Store | Cart

Re: [Python-Dev] PEP 471 "scandir" accepted

From: Victor Stinner <vict...@gmail.com>
Tue, 22 Jul 2014 18:16:14 +0200
2014-07-22 17:52 GMT+02:00 Ben Hoyt <benh...@gmail.com>:
> However, given that we have to support this for listdir() anyway, I> think it's worth reconsidering whether scandir()'s directory argument> can be an integer FD. Given that listdir() already supports it, it> will almost certainly be asked for later anyway for someone who's> porting some listdir code that uses an FD. Thoughts, Victor?

Please focus on what was accepted in the PEP. We should first test
os.scandir(). In a few months, with better feedbacks, we can consider
extending os.scandir() to support a file descriptor. There are
different issues which should be discussed and decided to implement it
(ex: handle the lifetime of the directory file descriptor).

Victor
_______________________________________________
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
Victor Stinner Jul 21, 2014 10:26 pm
Ben Hoyt Jul 22, 2014 02:27 am
Akira Li Jul 22, 2014 07:33 am
Ben Hoyt Jul 22, 2014 03:52 pm
Victor Stinner Jul 22, 2014 04:16 pm
Nick Coghlan Jul 22, 2014 08:57 pm
Ben Hoyt Jul 22, 2014 09:07 pm
Akira Li Jul 22, 2014 11:21 pm
Victor Stinner Jul 22, 2014 07:39 am
Victor Stinner Jul 22, 2014 09:57 pm
Antoine Pitrou Jul 23, 2014 01:23 am
Ethan Furman Jul 24, 2014 12:34 am
Messages in this thread