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

Serhiy Storchaka report at bugs.python.org
Thu Dec 26 21:28:44 CET 2013


Serhiy Storchaka added the comment:

Use unbuffered binary file.

>>> open("/dev/tty", "r+b", buffering=0)
<_io.FileIO name='/dev/tty' mode='rb+'>

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list