SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 2 Python

bpo-32236: open() emits RuntimeWarning if buffering=1 for binary mode (GH-4842)

If buffering=1 is specified for open() in binary mode, it is silently
treated as buffering=-1 (i.e., the default buffer size).
Coupled with the fact that line buffering is always supported in Python 2,
such behavior caused several issues (e.g., bpo-10344, bpo-21332).

Warn that line buffering is not supported if open() is called with
binary mode and buffering=1.
A
Alexey Izbyshev committed
a2670565d8f5c502388378aba1fe73023fd8c8d4
Parent: 4acf6c9
Committed by Victor Stinner <vstinner@redhat.com> on 10/20/2018, 12:22:31 AM