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 andrei.avk
Recipients andrei.avk, benjamin.peterson, calestyo, docs@python
Date 2021-07-03.03:11:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625281892.25.0.801893129775.issue43336@roundup.psfhosted.org>
In-reply-to
Content
I don't think it's incorrect right now, from the POV of internal data of the stream, there's 6 chars, from the POV of caller, 5 chars are read. So this can be interpreted as 2 chars are combined into 1 char read.

On the other hand if TextIOBase was reading '\r' and letting caller process it and then reading '\n....' that would be of course a recipe to shoot the user in the foot, and would require a warning in big red letters in the docs. (Or even better fixing it to do what it does now.)
History
Date User Action Args
2021-07-03 03:11:32andrei.avksetrecipients: + andrei.avk, benjamin.peterson, docs@python, calestyo
2021-07-03 03:11:32andrei.avksetmessageid: <1625281892.25.0.801893129775.issue43336@roundup.psfhosted.org>
2021-07-03 03:11:32andrei.avklinkissue43336 messages
2021-07-03 03:11:31andrei.avkcreate