[Python-checkins] cpython (3.4): Issue #14824: Update Repr.repr_TYPE documentation to use correct name mangling
berker.peksag
python-checkins at python.org
Thu Sep 18 05:04:54 CEST 2014
http://hg.python.org/cpython/rev/e9968782c9ba
changeset: 92463:e9968782c9ba
branch: 3.4
parent: 92458:8adb2c6e0803
user: Berker Peksag <berker.peksag at gmail.com>
date: Thu Sep 18 06:05:14 2014 +0300
summary:
Issue #14824: Update Repr.repr_TYPE documentation to use correct name mangling implementation.
Patch by Chris Rebert.
files:
Doc/library/reprlib.rst | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/library/reprlib.rst b/Doc/library/reprlib.rst
--- a/Doc/library/reprlib.rst
+++ b/Doc/library/reprlib.rst
@@ -129,9 +129,9 @@
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)``.
+ ``'_'.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)``.
.. _subclassing-reprs:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list