[Python-Dev] PEP 471 -- os.scandir() function -- a better and faster directory iterator

Chris Angelico rosuav at gmail.com
Sat Jun 28 17:27:44 CEST 2014


On Sat, Jun 28, 2014 at 11:05 PM, Akira Li <4kir4.1i at gmail.com> wrote:
> Have you considered adding support for paths relative to directory
> descriptors [1] via keyword only dir_fd=None parameter if it may lead to
> more efficient implementations on some platforms?
>
> [1]: https://docs.python.org/3.4/library/os.html#dir-fd

Potentially more efficient and also potentially safer (see 'man
openat')... but an enhancement that can wait, if necessary.

ChrisA


More information about the Python-Dev mailing list