Kaydet (Commit) de88b88b authored tarafından Berker Peksag's avatar Berker Peksag

Issue #14824: Update Repr.repr_TYPE documentation to use correct name mangling implementation.

Patch by Chris Rebert.
...@@ -129,9 +129,9 @@ which format specific object types. ...@@ -129,9 +129,9 @@ which format specific object types.
Formatting methods for specific types are implemented as methods with a name Formatting methods for specific types are implemented as methods with a name
based on the type name. In the method name, **TYPE** is replaced by based on the type name. In the method name, **TYPE** is replaced by
``string.join(string.split(type(obj).__name__, '_'))``. Dispatch to these ``'_'.join(type(obj).__name__.split())``. Dispatch to these methods is
methods is handled by :meth:`repr1`. Type-specific methods which need to handled by :meth:`repr1`. Type-specific methods which need to recursively
recursively format a value should call ``self.repr1(subobj, level - 1)``. format a value should call ``self.repr1(subobj, level - 1)``.
.. _subclassing-reprs: .. _subclassing-reprs:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment