[Python-Dev] PEP 471 Final: os.scandir() merged into Python 3.5

Victor Stinner victor.stinner at gmail.com
Sun Mar 8 03:39:03 CET 2015


2015-03-08 3:31 GMT+01:00 Ben Hoyt <benhoyt at gmail.com>:
> Thanks for committing this, Victor! And fixing the d_type issue on funky
> platforms.

You're welcome.

> Note that the actual CPython version of os.walk() doesn't yet use
> os.scandir(). I intend to open a separate issue for that shortly (or Victor
> can). But that part should be fairly straight-forward, as I already have a
> version available in my GitHub project.

Yes, I just opened an issue for os.walk():
http://bugs.python.org/issue23605

We need a patch and benchmarks on Linux and Windows for that
(including benchmarks on a NFS share for the Linux case).

I changed the status of the PEP 471 to Final even if os.walk() was not
modified yet. IMO the most important part was os.scandir() since
"os.scandir()" is in the title of the PEP 471.

Victor


More information about the Python-Dev mailing list