mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #18743: Fix references to non-existant "StringIO" module.
This commit is contained in:
parent
ec34ab5010
commit
e79be877df
6 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue