[New-bugs-announce] [issue35870] readline() specification is unclear

Victor Porton report at bugs.python.org
Thu Jan 31 13:13:51 EST 2019


New submission from Victor Porton <porton at narod.ru>:

In https://docs.python.org/3/library/io.html it is forgotten to say whether '\n' is appened to the return value of readline().

It is also unclear what happens if the last line not terminated by '\n' is read.

It is also unclear what is returned if a text file (say with '\r\n' terminators) is read. Is it appended to the return value '\n', '\r\n' or nothing?

----------
assignee: docs at python
components: Documentation
messages: 334634
nosy: docs at python, porton
priority: normal
severity: normal
status: open
title: readline() specification is unclear
versions: Python 3.8

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


More information about the New-bugs-announce mailing list