Eryk Sun <eryk...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42044>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to