cpython: a0372781eafb (original) (raw)
Mercurial > cpython
changeset 92464:a0372781eafb
Issue #14824: Update Repr.repr_TYPE documentation to use correct name mangling implementation. Patch by Chris Rebert. [#14824]
Berker Peksag berker.peksag@gmail.com | |
---|---|
date | Thu, 18 Sep 2014 06:05:37 +0300 |
parents | 713ee49ec3ba(current diff)e9968782c9ba(diff) |
children | ea401e7c55e4 |
files | |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-)[+] [-] Doc/library/reprlib.rst 6 |
line wrap: on
line diff
--- a/Doc/library/reprlib.rst +++ b/Doc/library/reprlib.rst @@ -129,9 +129,9 @@ which format specific object types. 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
string.join(string.split(type(obj).__name__, '_'))
. 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)
.