[Python-Dev] PEP 471: scandir(fd) and pathlib.Path(name, dir_fd=None)

Victor Stinner victor.stinner at gmail.com
Wed Jul 2 13:59:26 CEST 2014

2014-07-02 12:51 GMT+02:00 Charles-François Natali <cf.natali at gmail.com>:
> I don't think we should support it: it's way too complicated to use,
> error-prone, and leads to messy APIs.

Can you please elaborate? Which kind of issue do you see? Handling the
lifetime of the directory file descriptor?

You don't like the dir_fd parameter of os functions?

I don't have an opinion of supporting scandir(int). I asked to discuss
it in the PEP directly.


More information about the Python-Dev mailing list