Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92af06b commit be7ff9fCopy full SHA for be7ff9f
1 file changed
Doc/library/io.rst
@@ -844,13 +844,14 @@ Text I/O
844
Whether line buffering is enabled.
845
846
847
-.. class:: StringIO(initial_value='', newline=None)
+.. class:: StringIO(initial_value='', newline='\\n')
848
849
An in-memory stream for text I/O.
850
851
The initial value of the buffer (an empty string by default) can be set by
852
providing *initial_value*. The *newline* argument works like that of
853
- :class:`TextIOWrapper`. The default is to do no newline translation.
+ :class:`TextIOWrapper`. The default is to consider only ``\n`` characters
854
+ as end of lines and to do no newline translation.
855
856
:class:`StringIO` provides this method in addition to those from
857
:class:`TextIOBase` and its parents:
0 commit comments