Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8a2e22ef
Commit
8a2e22ef
authored
Feb 02, 2014
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20423: fix documentation of io.StringIO's newline parameter
parent
15b67d7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/library/io.rst
Doc/library/io.rst
+3
-3
No files found.
Doc/library/io.rst
View file @
8a2e22ef
...
...
@@ -791,14 +791,14 @@ Text I/O
Whether line buffering is enabled.
.. class:: StringIO(initial_value=u'', newline=
None
)
.. class:: StringIO(initial_value=u'', newline=
u'\\n'
)
An in-memory stream for unicode text. It inherits :class:`TextIOWrapper`.
The initial value of the buffer (an empty unicode 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.
that of :class:`TextIOWrapper`. The default is to
consider only ``\n``
characters as end of lines and to do no newline
translation.
:class:`StringIO` provides this method in addition to those from
:class:`TextIOWrapper` and its parents:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment