[New-bugs-announce] [issue26318] `io.open(fd, ...).name` returns numeric fd instead of None
Марк Коренберг
report at bugs.python.org
Tue Feb 9 01:30:24 EST 2016
New submission from Марк Коренберг:
`io.open(fd, ...).name` returns numeric fd instead of None. This lead to some nasty bugs.
In order to bring consistency and make that predictable, please make `.name` for that case to return None. (and document it)
----------
components: IO, Library (Lib)
messages: 259915
nosy: mmarkk
priority: normal
severity: normal
status: open
title: `io.open(fd, ...).name` returns numeric fd instead of None
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26318>
_______________________________________
More information about the New-bugs-announce
mailing list