diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-16 21:11:54 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-16 21:11:54 (GMT) |
commit | bbbf19170739f2f9c1505a03a1b4c43b5b2d484e (patch) | |
tree | ac205d0517aba8947cc24124dbd67e7bf5af09d6 /Doc/c-api | |
parent | c593056744559102f79f82c8b87da05d9a0450ca (diff) | |
parent | e79be877df9a08d156f58050b303b5cab9142856 (diff) | |
download | cpython-bbbf19170739f2f9c1505a03a1b4c43b5b2d484e.zip cpython-bbbf19170739f2f9c1505a03a1b4c43b5b2d484e.tar.gz cpython-bbbf19170739f2f9c1505a03a1b4c43b5b2d484e.tar.bz2 |
Issue #18743: Fix references to non-existant "StringIO" module.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/typeobj.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 9b94c19..8e8af24 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -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 |