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 cb0a006 commit 2d510e3Copy full SHA for 2d510e3
1 file changed
Doc/library/reprlib.rst
@@ -129,9 +129,9 @@ which format specific object types.
129
130
Formatting methods for specific types are implemented as methods with a name
131
based on the type name. In the method name, **TYPE** is replaced by
132
- ``string.join(string.split(type(obj).__name__, '_'))``. Dispatch to these
133
- methods is handled by :meth:`repr1`. Type-specific methods which need to
134
- recursively format a value should call ``self.repr1(subobj, level - 1)``.
+ ``'_'.join(type(obj).__name__.split())``. Dispatch to these methods is
+ handled by :meth:`repr1`. Type-specific methods which need to recursively
+ format a value should call ``self.repr1(subobj, level - 1)``.
135
136
137
.. _subclassing-reprs:
0 commit comments