Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e9e9c1

Browse files
committed
Issue #15571: comment the fact what python impl of TextIOWrapper always works in write_throuth mode
1 parent e4b1a18 commit 4e9e9c1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/_pyio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,9 @@ class TextIOWrapper(TextIOBase):
14611461

14621462
_CHUNK_SIZE = 2048
14631463

1464+
# The write_through argument has no effect here since this
1465+
# implementation always writes through. The argument is present only
1466+
# so that the signature can match the signature of the C version.
14641467
def __init__(self, buffer, encoding=None, errors=None, newline=None,
14651468
line_buffering=False, write_through=False):
14661469
if newline is not None and not isinstance(newline, str):

0 commit comments

Comments
 (0)