[docs] [issue22004] io documentation refers to newline as newlines

Andrew Barnert report at bugs.python.org
Fri Jul 18 08:25:17 CEST 2014

New submission from Andrew Barnert:

In at least one place in the io module documentation (io.IOBase.readline), and in the corresponding docstring, the newline parameter to open (and io.open, and io.Foo.__init__) is referred to as "newlines":

> The line terminator is always b'\n' for binary files; for text files, 
> the newlines argument to open() can be used to select the line 
> terminator(s) recognized.

(The newline parameter is closely related to the newlines attribute of the TextIOWrapper that gets created by the open call, but they're not the same thing, and I think were named differently intentionally.)

assignee: docs at python
components: Documentation
messages: 223398
nosy: abarnert, docs at python
priority: normal
severity: normal
status: open
title: io documentation refers to newline as newlines
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

Python tracker <report at bugs.python.org>

More information about the docs mailing list