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@python
components: Documentation
messages: 223398
nosy: abarnert, docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22004>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to