From: Benjamin Peterson Date: Mon, 9 Mar 2009 02:02:23 +0000 (+0000) Subject: fix StringIO constructor docs #5452 X-Git-Tag: v3.1a2~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa1c8d88992d482f90268f2352fccb6e74d87279;p=python fix StringIO constructor docs #5452 --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index cfd1af5d6b..6ce28d032a 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -637,13 +637,13 @@ Text I/O 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: