[issue27805] In Python 3, open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

Martin Panter report at bugs.python.org
Sat Aug 20 23:13:01 EDT 2016


Martin Panter added the comment:

Handling ESPIPE for append mode seems reasonable to me, even as a bug fix for existing versions.

But there is a similar problem with "r+" and "w+" modes and unseekable files (unless buffering=0). See Issue 20074. So we can’t say in general that Python 3 faithfully implements all aspects of Python 2’s / C’s / Posix’s file modes.

----------

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


More information about the Python-bugs-list mailing list