mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
bpo-22069: Update TextIO documentation (GH-6609)
Clarify that flush is implied when the call to write contains a newline character.
(cherry picked from commit 7ffd4c58fa
)
Co-authored-by: Elena Oat <oat.elena@gmail.com>
This commit is contained in:
parent
2e01f7d5fe
commit
050e041bf7
1 changed files with 1 additions and 1 deletions
|
@ -889,7 +889,7 @@ Text I/O
|
|||
characters written are translated to the given string.
|
||||
|
||||
If *line_buffering* is ``True``, :meth:`flush` is implied when a call to
|
||||
write contains a newline character.
|
||||
write contains a newline character or a carriage return.
|
||||
|
||||
If *write_through* is ``True``, calls to :meth:`write` are guaranteed
|
||||
not to be buffered: any data written on the :class:`TextIOWrapper`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue