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

Antti Haapala report at bugs.python.org
Sun Aug 21 03:23:29 EDT 2016


Antti Haapala added the comment:

Yeah, it definitely is a bug in CPython. open(mode='a') should always append to the end of the given file. 

If you're writing an append-only text log to some file-like object, that's the mode you use, not some version/platform/filesystem specific voodoo to find out what's the least incorrect way to work around Python implementation deficiencies.

----------

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


More information about the Python-bugs-list mailing list