[issue42044] Running Python in unbuffered mode may not write all contents to the console
Eryk Sun
report at bugs.python.org
Thu Oct 15 15:00:29 EDT 2020
Eryk Sun <eryksun at gmail.com> added the comment:
Text mode without a buffer isn't reliable. That said, Python 3.9 no longer supports Windows 7, so it can remove the 32 KiB limit on console I/O files.
The size limit in Windows 7 and earlier is due to the LPC-based pseudo-files that it uses for I/O. Under the hood, console pseudo-files use a 64 KiB heap that's shared between the console host process and client processes.
In Windows 8+, console files are real files that use the ConDrv device instead of LPC, in which case there is practically no limit on the size of buffers that can be read and written.
----------
nosy: +eryksun
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42044>
_______________________________________
More information about the Python-bugs-list
mailing list