[Python-checkins] r70255 - python/branches/py3k/Doc/library/io.rst

benjamin.peterson python-checkins at python.org
Mon Mar 9 03:02:24 CET 2009


Author: benjamin.peterson
Date: Mon Mar  9 03:02:23 2009
New Revision: 70255

Log:
fix StringIO constructor docs #5452

Modified:
   python/branches/py3k/Doc/library/io.rst

Modified: python/branches/py3k/Doc/library/io.rst
==============================================================================
--- python/branches/py3k/Doc/library/io.rst	(original)
+++ python/branches/py3k/Doc/library/io.rst	Mon Mar  9 03:02:23 2009
@@ -637,13 +637,13 @@
       Whether line buffering is enabled.
 
 
-.. class:: StringIO([initial_value[, encoding[, errors[, newline]]]])
+.. class:: StringIO([initial_value[, newline]])
 
    An in-memory stream for text.  It inherits :class:`TextIOWrapper`.
 
-   Create a new StringIO stream with an initial value, encoding, error handling,
-   and newline setting.  See :class:`TextIOWrapper`\'s constructor for more
-   information.
+   The initial value of the buffer (an empty string by default) can be set by
+   providing *initial_value*.  The *newline* argument works like that of
+   :class:`TextIOWrapper`.  The default is to do no newline translation.
 
    :class:`StringIO` provides this method in addition to those from
    :class:`TextIOWrapper` and its parents:


More information about the Python-checkins mailing list