[New-bugs-announce] [issue40391] io.FileIO.mode doesn't comply with the docs

mike.parker report at bugs.python.org
Sat Apr 25 20:50:56 EDT 2020


New submission from mike.parker <mike.parker-3ob7b3hc at yopmail.com>:

io.FileIO.mode doesn't reflect "The mode as given in the constructor." as per the documentation(https://docs.python.org/3/library/io.html#io.FileIO.mode).
Was noted in issue4362, but seems to be still relevant.

Example:
>>> f = open("t.tmp", "w+b")
>>> f.mode
'rb+'

----------
assignee: docs at python
components: Documentation, IO
messages: 367288
nosy: benjamin.peterson, docs at python, mike.parker, stutzbach
priority: normal
severity: normal
status: open
title: io.FileIO.mode doesn't comply with the docs
type: behavior
versions: Python 3.7

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


More information about the New-bugs-announce mailing list