mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
[3.12] gh-59254: mention in open() doc that line buffering is for writing (GH-112318) (#112378)
gh-59254: mention in open() doc that line buffering is for writing (GH-112318)
(cherry picked from commit fafae08cc7
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
86db104eeb
commit
103728dc15
1 changed files with 1 additions and 1 deletions
|
@ -1221,7 +1221,7 @@ are always available. They are listed here in alphabetical order.
|
||||||
|
|
||||||
*buffering* is an optional integer used to set the buffering policy. Pass 0
|
*buffering* is an optional integer used to set the buffering policy. Pass 0
|
||||||
to switch buffering off (only allowed in binary mode), 1 to select line
|
to switch buffering off (only allowed in binary mode), 1 to select line
|
||||||
buffering (only usable in text mode), and an integer > 1 to indicate the size
|
buffering (only usable when writing in text mode), and an integer > 1 to indicate the size
|
||||||
in bytes of a fixed-size chunk buffer. Note that specifying a buffer size this
|
in bytes of a fixed-size chunk buffer. Note that specifying a buffer size this
|
||||||
way applies for binary buffered I/O, but ``TextIOWrapper`` (i.e., files opened
|
way applies for binary buffered I/O, but ``TextIOWrapper`` (i.e., files opened
|
||||||
with ``mode='r+'``) would have another buffering. To disable buffering in
|
with ``mode='r+'``) would have another buffering. To disable buffering in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue