cpython/Modules/_io
Cody Maloney 06a1c3fb24
gh-120754: Update estimated_size in C truncate (#121357)
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.
2024-07-04 12:59:18 +00:00
..
clinic gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#119712) 2024-05-29 11:37:04 +02:00
_iomodule.c Fixes loop variables to be the same types as their limit (GH-120958) 2024-06-24 17:11:47 +01:00
_iomodule.h gh-101819: Isolate `_io` (#101948) 2023-05-15 09:26:27 +00:00
bufferedio.c gh-117151: optimize BufferedWriter(), do not buffer writes that are the buffer size (GH-118037) 2024-04-23 18:51:20 +03:00
bytesio.c gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069) 2024-03-22 11:25:38 +00:00
fileio.c gh-120754: Update estimated_size in C truncate (#121357) 2024-07-04 12:59:18 +00:00
iobase.c Fix an incorrect comment in iobase_is_closed (GH-102952) 2024-01-16 18:27:17 +02:00
stringio.c gh-113993: Allow interned strings to be mortal, and fix related issues (GH-120520) 2024-06-21 17:19:31 +02:00
textio.c gh-119506: fix `_io.TextIOWrapper.write()` write during flush (#119507) 2024-06-03 16:47:36 +09:00
winconsoleio.c gh-115538: Emit warning when use bool as fd in _io.WindowsConsoleIO (GH-116925) 2024-03-18 11:48:50 +00:00