[issue31871] Support for file descriptor params in os.path

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Éric, see https://docs.python.org/3/library/os.html#files-and-directories. Yes, now some os.path functions can accept a file descriptor as a path. I don't think this is intentional. And this may not work on all platforms. >>>

[issue31871] Support for file descriptor params in os.path

2017-10-27 Thread Éric Araujo
Éric Araujo added the comment: > support passing file descriptor instead of a path. os.path functions Are you sure about that? The docs for os.stat show the dir_fd parameter, used to avoid directory renaming issues or attacks, but it doesn’t say that the *path* argument

[issue31871] Support for file descriptor params in os.path

2017-10-25 Thread Mateusz Kurek
New submission from Mateusz Kurek : Since Python 3.3, some os module functions, like os.stat (https://docs.python.org/3/library/os.html#os.stat), support passing file descriptor instead of a path. os.path functions, on the other hand (like os.path.exists -