mirror of https://github.com/python/cpython
a2670565d8
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. |
||
---|---|---|
.. | ||
clinic | ||
_iomodule.c | ||
_iomodule.h | ||
bufferedio.c | ||
bytesio.c | ||
fileio.c | ||
iobase.c | ||
stringio.c | ||
textio.c | ||
winconsoleio.c |