[issue20074] open() of read-write non-seekable streams broken

Serhiy Storchaka report at bugs.python.org
Fri Dec 27 08:42:45 CET 2013


Serhiy Storchaka added the comment:

> It's nice that that's at least possible, but I, for one, would still consider it a bug that it isn't possible to open it in text mode.

>>> io.TextIOWrapper(open("/dev/tty", "r+b", buffering=0))
<_io.TextIOWrapper name='/dev/tty' encoding='UTF-8'>

> Just to demonstrate failure of getpass, by the way:

Looks as this was fixed in issue18116 for 3.4. David, perhaps issue18116 should be backported to older Python versions.

----------
nosy: +benjamin.peterson, hynek, stutzbach

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20074>
_______________________________________


More information about the Python-bugs-list mailing list