Skip to content

Commit 103728d

Browse files
[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 fafae08) Co-authored-by: Irit Katriel <[email protected]>
1 parent 86db104 commit 103728d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ are always available. They are listed here in alphabetical order.
12211221

12221222
*buffering* is an optional integer used to set the buffering policy. Pass 0
12231223
to switch buffering off (only allowed in binary mode), 1 to select line
1224-
buffering (only usable in text mode), and an integer > 1 to indicate the size
1224+
buffering (only usable when writing in text mode), and an integer > 1 to indicate the size
12251225
in bytes of a fixed-size chunk buffer. Note that specifying a buffer size this
12261226
way applies for binary buffered I/O, but ``TextIOWrapper`` (i.e., files opened
12271227
with ``mode='r+'``) would have another buffering. To disable buffering in

0 commit comments

Comments
 (0)