[issue17404] ValueError: can't have unbuffered text I/O for io.open(1, 'wt', 0)

Martin Panter report at bugs.python.org
Sat Dec 29 19:00:51 EST 2018


Martin Panter <vadmium+py at gmail.com> added the comment:

It is documented that buffering=0 is not supported in text mode. Look a handful of paragraphs down from <https://docs.python.org/release/3.7.2/library/functions.html#open>:

“Pass 0 to switch buffering off (only allowed in binary mode)”

Amaury’s problem with the IDNA buffering encoder has now been reported separately in Issue 35611.

----------
nosy: +martin.panter

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


More information about the Python-bugs-list mailing list