[Python-checkins] Add a reference to the name mangling description in the tutorial to the index. (GH-10138)

Serhiy Storchaka webhook-mailer at python.org
Wed Nov 7 12:59:49 EST 2018


https://github.com/python/cpython/commit/c5eec4426d9144b2255500217d0e3ff9463d2770
commit: c5eec4426d9144b2255500217d0e3ff9463d2770
branch: master
author: Andrés Delfino <adelfino at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-11-07T19:59:45+02:00
summary:

Add a reference to the name mangling description in the tutorial to the index. (GH-10138)

files:
M Doc/tutorial/classes.rst

diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 7d3b823a14e0..edbc43fb1b5d 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



More information about the Python-checkins mailing list