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
4f3d35ca
Commit
4f3d35ca
authored
Aug 17, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #18743: Fix references to non-existant "StringIO" module.
parents
210abbf9
eadbe2ab
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
Doc/c-api/typeobj.rst
Doc/c-api/typeobj.rst
+1
-1
Doc/library/gzip.rst
Doc/library/gzip.rst
+1
-1
Doc/library/mailbox.rst
Doc/library/mailbox.rst
+2
-2
Doc/library/tempfile.rst
Doc/library/tempfile.rst
+1
-1
Doc/library/unittest.mock.rst
Doc/library/unittest.mock.rst
+2
-2
Doc/library/xml.dom.minidom.rst
Doc/library/xml.dom.minidom.rst
+1
-1
No files found.
Doc/c-api/typeobj.rst
View file @
4f3d35ca
...
...
@@ -192,7 +192,7 @@ type objects) *must* have the :attr:`ob_size` field.
An optional pointer to the instance print function.
The print function is only called when the instance is printed to a *real* file;
when it is printed to a pseudo-file (like a :class:`StringIO` instance), the
when it is printed to a pseudo-file (like a :class:`
io.
StringIO` instance), the
instance's :c:member:`~PyTypeObject.tp_repr` or :c:member:`~PyTypeObject.tp_str` function is called to convert it to
a string. These are also called when the type's :c:member:`~PyTypeObject.tp_print` field is
*NULL*. A type should never implement :c:member:`~PyTypeObject.tp_print` in a way that produces
...
...
Doc/library/gzip.rst
View file @
4f3d35ca
...
...
@@ -62,7 +62,7 @@ The module defines the following items:
value.
The new class instance is based on *fileobj*, which can be a regular file, a
:class:`
String
IO` object, or any other object which simulates a file. It
:class:`
io.Bytes
IO` object, or any other object which simulates a file. It
defaults to ``None``, in which case *filename* is opened to provide a file
object.
...
...
Doc/library/mailbox.rst
View file @
4f3d35ca
...
...
@@ -674,8 +674,8 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
In Babyl mailboxes, the headers of a message are not stored contiguously
with the body of the message. To generate a file-like representation, the
headers and body are copied together into a :class:`
StringIO` instance
(from the :mod:`StringIO` module),
which has an API identical to that of a
headers and body are copied together into a :class:`
io.BytesIO` instance,
which has an API identical to that of a
file. As a result, the file-like object is truly independent of the
underlying mailbox but does not save memory compared to a string
representation.
...
...
Doc/library/tempfile.rst
View file @
4f3d35ca
...
...
@@ -82,7 +82,7 @@ The module defines the following user-callable items:
causes the file to roll over to an on-disk file regardless of its size.
The returned object is a file-like object whose :attr:`_file` attribute
is either a :class:`
BytesIO` or :class:`
StringIO` object (depending on
is either a :class:`
io.BytesIO` or :class:`io.
StringIO` object (depending on
whether binary or text *mode* was specified) or a true file
object, depending on whether :func:`rollover` has been called. This
file-like object can be used in a :keyword:`with` statement, just like
...
...
Doc/library/unittest.mock.rst
View file @
4f3d35ca
...
...
@@ -1104,9 +1104,9 @@ you wanted a :class:`NonCallableMock` to be used:
...
TypeError: 'NonCallableMock' object is not callable
Another use case might be to replace an object with a `StringIO` instance:
Another use case might be to replace an object with a `
io.
StringIO` instance:
>>> from
StringIO
import StringIO
>>> from
io
import StringIO
>>> def foo():
... print 'Something'
...
...
...
Doc/library/xml.dom.minidom.rst
View file @
4f3d35ca
...
...
@@ -55,7 +55,7 @@ instead:
.. function:: parseString(string, parser=None)
Return a :class:`Document` that represents the *string*. This method creates a
:class:`StringIO` object for the string and passes that on to :func:`parse`.
:class:`
io.
StringIO` object for the string and passes that on to :func:`parse`.
Both functions return a :class:`Document` object representing the content of the
document.
...
...
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