diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-09 02:02:23 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-09 02:02:23 (GMT) |
commit | aa1c8d88992d482f90268f2352fccb6e74d87279 (patch) | |
tree | f58fb390f792244e4380b7f64345f7236b4f796d /Doc/library/io.rst | |
parent | ba3fcf17c8bd1ba84cf985b7ff36e6f67974e0ba (diff) | |
download | cpython-aa1c8d88992d482f90268f2352fccb6e74d87279.zip cpython-aa1c8d88992d482f90268f2352fccb6e74d87279.tar.gz cpython-aa1c8d88992d482f90268f2352fccb6e74d87279.tar.bz2 |
fix StringIO constructor docs #5452
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r-- | Doc/library/io.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst index cfd1af5..6ce28d0 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: |