[issue32236] open() shouldn't silently ignore buffering=1 in binary mode

Antoine Pitrou report at bugs.python.org
Sun Dec 10 13:44:01 EST 2017


Antoine Pitrou <pitrou at free.fr> added the comment:

> I suggest to raise a ValueError if buffering=1 is used for binary mode.

Either that, or we instead accept buffering=1 as a regular buffer size.  But since buffering=1 means something else for text mode, maybe you're right that it's better to raise in binary mode, to avoid any possible confusion.

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

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


More information about the Python-bugs-list mailing list