summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-11-07 17:59:45 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-07 17:59:45 (GMT)
commitc5eec4426d9144b2255500217d0e3ff9463d2770 (patch)
tree6cc5b8d93440ba20b7a4c181130409e0c772deb7 /Doc
parentcdb96f45b61a40a7e7c4c83b4b1f14ef6f5cf4fa (diff)
downloadcpython-c5eec4426d9144b2255500217d0e3ff9463d2770.zip
cpython-c5eec4426d9144b2255500217d0e3ff9463d2770.tar.gz
cpython-c5eec4426d9144b2255500217d0e3ff9463d2770.tar.bz2
Add a reference to the name mangling description in the tutorial to the index. (GH-10138)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/classes.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 7d3b823..edbc43f 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -672,6 +672,9 @@ be treated as a non-public part of the API (whether it is a function, a method
or a data member). It should be considered an implementation detail and subject
to change without notice.
+.. index::
+ pair: name; mangling
+
Since there is a valid use-case for class-private members (namely to avoid name
clashes of names with names defined by subclasses), there is limited support for
such a mechanism, called :dfn:`name mangling`. Any identifier of the form