[Python-checkins] r56832 - in doctools/trunk: Doc-26/library/stringio.rst Doc-3k/library/stringio.rst

georg.brandl python-checkins at python.org
Wed Aug 8 15:05:17 CEST 2007


Author: georg.brandl
Date: Wed Aug  8 15:05:17 2007
New Revision: 56832

Modified:
   doctools/trunk/Doc-26/library/stringio.rst
   doctools/trunk/Doc-3k/library/stringio.rst
Log:
Port rev. 56830.


Modified: doctools/trunk/Doc-26/library/stringio.rst
==============================================================================
--- doctools/trunk/Doc-26/library/stringio.rst	(original)
+++ doctools/trunk/Doc-26/library/stringio.rst	Wed Aug  8 15:05:17 2007
@@ -77,6 +77,10 @@
 provided by this module are not able to accept Unicode strings that cannot be
 encoded as plain ASCII strings.
 
+Calling :func:`StringIO` with a Unicode string parameter populates
+the object with the buffer representation of the Unicode string, instead of
+encoding the string. 
+
 Another difference from the :mod:`StringIO` module is that calling
 :func:`StringIO` with a string parameter creates a read-only object. Unlike an
 object created without a string parameter, it does not have write methods.

Modified: doctools/trunk/Doc-3k/library/stringio.rst
==============================================================================
--- doctools/trunk/Doc-3k/library/stringio.rst	(original)
+++ doctools/trunk/Doc-3k/library/stringio.rst	Wed Aug  8 15:05:17 2007
@@ -77,6 +77,10 @@
 provided by this module are not able to accept Unicode strings that cannot be
 encoded as plain ASCII strings.
 
+Calling :func:`StringIO` with a Unicode string parameter populates
+the object with the buffer representation of the Unicode string, instead of
+encoding the string. 
+
 Another difference from the :mod:`StringIO` module is that calling
 :func:`StringIO` with a string parameter creates a read-only object. Unlike an
 object created without a string parameter, it does not have write methods.


More information about the Python-checkins mailing list