[issue35870] readline() specification is unclear

2019-01-31 Thread Martin Panter
Martin Panter added the comment: I agree that the documentation should be clearer about the first two points. Considering that the "input" function and by default the "str.splitlines" method both behave differently, I often had to re-learn this when I had less Python experience. The

[issue35870] readline() specification is unclear

2019-01-31 Thread Victor Porton
New submission from Victor Porton : 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