[New-bugs-announce] [issue31871] Support for file descriptor params in os.path

Mateusz Kurek report at bugs.python.org
Thu Oct 26 01:33:13 EDT 2017


New submission from Mateusz Kurek <master.mateusz at gmail.com>:

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 - https://docs.python.org/3/library/os.path.html#os.path.exists - or os.path.samefile - https://docs.python.org/3/library/os.path.html#os.path.samefile) mention using os.stat underneath, but according to documentation, does not support passing file descriptor instead of a path (at least it's not mentioned in the docs that this feature is supported). Is this intentional (os.path functions should not take file descriptor params) or this feature is officialy supported, but it's ommited in the docs?

----------
assignee: docs at python
components: Documentation
messages: 305023
nosy: Mateusz Kurek, docs at python
priority: normal
severity: normal
status: open
title: Support for file descriptor params in os.path
type: enhancement
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31871>
_______________________________________


More information about the New-bugs-announce mailing list