[issue8264] hasattr doensn't show private (double underscore) attributes exist

R. David Murray report at bugs.python.org
Tue Mar 30 13:22:37 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

You are correct, this is the expected behavior.  Name mangling happens only at compilation time (see http://docs.python.org/reference/expressions.html#atom-identifiers).  A doc note for get/setattr would probably be useful.

(I removed 3.3; that version doesn't exist yet and should only be set on issues that can only be dealt with in 3.3, such as removing something deprecated in 3.2.)

----------
assignee:  -> georg.brandl
components: +Documentation -Interpreter Core
nosy: +georg.brandl, r.david.murray
priority:  -> normal
stage:  -> needs patch
versions:  -Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8264>
_______________________________________


More information about the Python-bugs-list mailing list