mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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
|
|
@ -185,9 +185,9 @@ PyDoc_STRVAR(open_doc,
|
|||
"\n"
|
||||
"* On output, if newline is None, any '\\n' characters written are\n"
|
||||
" translated to the system default line separator, os.linesep. If\n"
|
||||
" newline is '', no translation takes place. If newline is any of the\n"
|
||||
" other legal values, any '\\n' characters written are translated to\n"
|
||||
" the given string.\n"
|
||||
" newline is '' or '\n', no translation takes place. If newline is any\n"
|
||||
" of the other legal values, any '\\n' characters written are translated\n"
|
||||
" to the given string.\n"
|
||||
"\n"
|
||||
"If closefd is False, the underlying file descriptor will be kept open\n"
|
||||
"when the file is closed. This does not work when a file name is given\n"
|
||||
|
|
|
|||
|
|
@ -648,9 +648,9 @@ PyDoc_STRVAR(textiowrapper_doc,
|
|||
"\n"
|
||||
"* On output, if newline is None, any '\\n' characters written are\n"
|
||||
" translated to the system default line separator, os.linesep. If\n"
|
||||
" newline is '', no translation takes place. If newline is any of the\n"
|
||||
" other legal values, any '\\n' characters written are translated to\n"
|
||||
" the given string.\n"
|
||||
" newline is '' or '\n', no translation takes place. If newline is any\n"
|
||||
" of the other legal values, any '\\n' characters written are translated\n"
|
||||
" to the given string.\n"
|
||||
"\n"
|
||||
"If line_buffering is True, a call to flush is implied when a call to\n"
|
||||
"write contains a newline character."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue