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 calestyo
Recipients calestyo, docs@python
Date 2021-02-27.02:15:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614392137.45.0.448589201829.issue43336@roundup.psfhosted.org>
In-reply-to
Content
Hey.

It would be nice if the following behaviour could be definitely clarified:

When reading from a text stream with readline(size) with a n > 0size it says: "If size is specified, at most size characters will be read."

Also, depending on the settings of newlines of the stream, \r\n would be converted to \n.


It's not definitely clear whether a string like
"abc\r\n"
read with a size of = 4 will return "abc\n" (which it seems to do, in other words, it reads actually 5 characters, but sill returns only 4), or whether it returns "abc\r".


Cheers,
Chris.
History
Date User Action Args
2021-02-27 02:15:37calestyosetrecipients: + calestyo, docs@python
2021-02-27 02:15:37calestyosetmessageid: <1614392137.45.0.448589201829.issue43336@roundup.psfhosted.org>
2021-02-27 02:15:37calestyolinkissue43336 messages
2021-02-27 02:15:37calestyocreate