mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Sometimes a large file is truncated (test_largefile). While estimated_size is used as a estimate (the read will stil get the number of bytes in the file), that it is much larger than the actual size of data can result in a significant over allocation and sometimes lead to a MemoryError / running out of memory. This brings the C implementation to match the Python _pyio implementation. |
||
|---|---|---|
| .. | ||
| clinic | ||
| _iomodule.c | ||
| _iomodule.h | ||
| bufferedio.c | ||
| bytesio.c | ||
| fileio.c | ||
| iobase.c | ||
| stringio.c | ||
| textio.c | ||
| winconsoleio.c | ||