mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-8264: Document hasattr and getattr behavior for private attributes (GH-23513)
Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com>
This commit is contained in:
parent
bb739ec922
commit
2edaf6a4fb
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue