mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
(Merge 3.2) open() / TextIOWrapper doc: make it explicit than newline='\n'
doesn't translate newlines on output.
This commit is contained in:
commit
d1f9352bd4
4 changed files with 12 additions and 12 deletions
|
@ -887,9 +887,9 @@ are always available. They are listed here in alphabetical order.
|
|||
|
||||
* On output, if *newline* is ``None``, any ``'\n'`` characters written are
|
||||
translated to the system default line separator, :data:`os.linesep`. If
|
||||
*newline* is ``''``, no translation takes place. If *newline* is any of
|
||||
the other legal values, any ``'\n'`` characters written are translated to
|
||||
the given string.
|
||||
*newline* is ``''`` or ``'\n'``, no translation takes place. If *newline*
|
||||
is any of the other legal values, any ``'\n'`` characters written are
|
||||
translated to the given string.
|
||||
|
||||
If *closefd* is ``False`` and a file descriptor rather than a filename was
|
||||
given, the underlying file descriptor will be kept open when the file is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue