From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 7 Nov 2018 18:30:12 +0000 (-0800) Subject: Add a reference to the name mangling description in the tutorial to the index. (GH... X-Git-Tag: v2.7.16rc1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d06b60fca35dd597a6009c643c90a6601a365932;p=thirdparty%2FPython%2Fcpython.git Add a reference to the name mangling description in the tutorial to the index. (GH-10138) (cherry picked from commit c5eec4426d9144b2255500217d0e3ff9463d2770) Co-authored-by: Andrés Delfino --- diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 9935ccb92725..b17e150cff04 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -620,6 +620,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