[Python-Dev] os.walk() is going to be *fast* with scandir

Ben Hoyt benhoyt at gmail.com
Mon Aug 11 17:51:26 CEST 2014


> Victor Stinner suggested [1] to allow scandir(fd) but I don't see it
> being mentioned in the pep 471 [2]: it neither supports nor rejects the
> idea.
>
> [1] https://mail.python.org/pipermail/python-dev/2014-July/135283.html
> [2] http://legacy.python.org/dev/peps/pep-0471/

Yes, listdir() supports fd, and I think scandir() probably will too to
parallel that, if not for v1.0 then soon after. Victor and I want to
focus on getting the PEP 471 (string path only) version working first.

-Ben


More information about the Python-Dev mailing list