File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1113,7 +1113,11 @@ are always available. They are listed here in alphabetical order.
1113
1113
*buffering * is an optional integer used to set the buffering policy. Pass 0
1114
1114
to switch buffering off (only allowed in binary mode), 1 to select line
1115
1115
buffering (only usable in text mode), and an integer > 1 to indicate the size
1116
- in bytes of a fixed-size chunk buffer. When no *buffering * argument is
1116
+ in bytes of a fixed-size chunk buffer. Note that specifying a buffer size this
1117
+ way applies for binary buffered I/O, but ``TextIOWrapper `` (i.e., files opened
1118
+ with ``mode='r+' ``) would have another buffering. To disable buffering in
1119
+ ``TextIOWrapper ``, consider using the ``write_through `` flag for
1120
+ :func: `io.TextIOWrapper.reconfigure `. When no *buffering * argument is
1117
1121
given, the default buffering policy works as follows:
1118
1122
1119
1123
* Binary files are buffered in fixed-size chunks; the size of the buffer is
You can’t perform that action at this time.
0 commit comments