[Python-checkins] cpython: Issue #15571: comment the fact what python impl of TextIOWrapper always works

andrew.svetlov python-checkins at python.org
Mon Aug 13 15:10:12 CEST 2012


http://hg.python.org/cpython/rev/ba055ccd99ef
changeset:   78541:ba055ccd99ef
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Mon Aug 13 16:09:54 2012 +0300
summary:
  Issue #15571: comment the fact what python impl of TextIOWrapper always works in write_throuth mode

files:
  Lib/_pyio.py |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Lib/_pyio.py b/Lib/_pyio.py
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -1461,6 +1461,9 @@
 
     _CHUNK_SIZE = 2048
 
+    # The write_through argument has no effect here since this
+    # implementation always writes through.  The argument is present only
+    # so that the signature can match the signature of the C version.
     def __init__(self, buffer, encoding=None, errors=None, newline=None,
                  line_buffering=False, write_through=False):
         if newline is not None and not isinstance(newline, str):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list