This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile
Date 2020-10-27.17:37:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603820242.16.0.850917923233.issue42175@roundup.psfhosted.org>
In-reply-to
Content
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 sys; print(len(sys.stdin.read()))'
4. paste
5. press enter
6. ^D

I get the following:

$ python3 -c 'import sys; print(len(sys.stdin.read()))'
...
4096

but I expect the value to be 5001 (+1 for the \n)
History
Date User Action Args
2020-10-27 17:37:22Anthony Sottilesetrecipients: + Anthony Sottile
2020-10-27 17:37:22Anthony Sottilesetmessageid: <1603820242.16.0.850917923233.issue42175@roundup.psfhosted.org>
2020-10-27 17:37:22Anthony Sottilelinkissue42175 messages
2020-10-27 17:37:22Anthony Sottilecreate