Issue 22004: io documentation refers to newline as newlines (original) (raw)
Issue22004
Created on 2014-07-18 06:25 by abarnert, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (4) | ||
---|---|---|
msg223398 - (view) | Author: Andrew Barnert (abarnert) * | Date: 2014-07-18 06:25 |
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.) | ||
msg223399 - (view) | Author: Andrew Barnert (abarnert) * | Date: 2014-07-18 06:28 |
Searching the source and the help page, it looks like the one example I gave is the only place it's wrong in each of the two, not one of multiple places. | ||
msg223409 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2014-07-18 14:15 |
New changeset 4c98086194d5 by Zachary Ware in branch '2.7': Issue #22004: Correct an argument name. http://hg.python.org/cpython/rev/4c98086194d5 New changeset 252cd056d1cf by Zachary Ware in branch '3.4': Issue #22004: Correct an argument name. http://hg.python.org/cpython/rev/252cd056d1cf New changeset f83adc06f486 by Zachary Ware in branch 'default': Closes #22004: Merge with 3.4 http://hg.python.org/cpython/rev/f83adc06f486 | ||
msg223410 - (view) | Author: Zachary Ware (zach.ware) * ![]() |
Date: 2014-07-18 14:16 |
Fixed! Thanks for the report. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:06 | admin | set | github: 66203 |
2014-07-18 14:16:45 | zach.ware | set | nosy: + zach.waremessages: + versions: - Python 3.1, Python 3.2, Python 3.3 |
2014-07-18 14:15:49 | python-dev | set | status: open -> closednosy: + python-devmessages: + resolution: fixedstage: resolved |
2014-07-18 06:28:19 | abarnert | set | messages: + |
2014-07-18 06:25:17 | abarnert | create |