[issue42175] long lines from interactive stdin are truncated

Eryk Sun report at bugs.python.org
Tue Oct 27 14:47:11 EDT 2020


Eryk Sun <eryksun at gmail.com> added the comment:

For Windows see issue 41849. The legacy limit (i.e. PYTHONLEGACYWINDOWSSTDIO) for reading input via io.FileIO is 8K characters in Windows, but with io._WindowsConsoleIO, it's only 512 characters, which is far too small in general. The legacy implementation of input() based on C fgets() is capped at 4K characters in Windows, which is the same as a Linux terminal. The new implementation of input() in Windows (i.e. _PyOS_WindowsConsoleReadline) increases the limit to 16K characters. I'd like to see both cases increased to 32K characters, which is the length limit of a command line or file path in Windows.

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42175>
_______________________________________


More information about the Python-bugs-list mailing list