[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Eryk Sun
Eryk Sun 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

[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Anthony Sottile
Anthony Sottile added the comment: indeed! that's it -- you learn something every day :) -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Ammar Askar
Ammar Askar added the comment: This doesn't show up in piping so I think it might be a Linux terminal limitation. This thread claims a 4096 limit in cooked terminals, would you mind giving one of the work-arounds here a try and see if it that gets rid of it:

[issue42175] long lines from interactive stdin are truncated

2020-10-27 Thread Anthony Sottile
New submission from Anthony Sottile : this was originally pointed out in a comment on my youtube video here: https://youtu.be/Xf_82stIbB8 here's a reproduction: 1. produce 5000 characters of output: python3 -c 'print("a"*5000)' 2. copy that to the clipboard 3. run this: python3 -c 'import