summaryrefslogtreecommitdiffstats
path: root/Doc/reference/expressions.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-22 11:06:46 (GMT)
committerGitHub <noreply@github.com>2021-05-22 11:06:46 (GMT)
commit11b5045b0ce18fee8cc1023cc516aeb14ebf7bda (patch)
treebdd83cf26cdb955336d2408e117e710468958df4 /Doc/reference/expressions.rst
parenta373c8081148bf564512f00fb6106026f4ac72f8 (diff)
downloadcpython-11b5045b0ce18fee8cc1023cc516aeb14ebf7bda.zip
cpython-11b5045b0ce18fee8cc1023cc516aeb14ebf7bda.tar.gz
cpython-11b5045b0ce18fee8cc1023cc516aeb14ebf7bda.tar.bz2
bpo-8264: Document hasattr and getattr behavior for private attributes (GH-23513) (GH-26238)
Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com> (cherry picked from commit 2edaf6a4fb7e20324dde1423232f07211347f092) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r--Doc/reference/expressions.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 8fead33..51fa750 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -77,6 +77,8 @@ When the name is bound to an object, evaluation of the atom yields that object.
When a name is not bound, an attempt to evaluate it raises a :exc:`NameError`
exception.
+.. _private-name-mangling:
+
.. index::
pair: name; mangling
pair: private; names