[issue8264] hasattr doesn't show private (double underscore) attributes exist
Catalin Iacob
report at bugs.python.org
Sat Jul 7 13:08:50 CEST 2012
Catalin Iacob <iacobcatalin at gmail.com> added the comment:
Attached a patch that adds a note for getattr and setattr. hasattr is documented in terms of getattr so I would say it's not needed there.
I don't know if the interaction with private attributes is confusing enough that it's worth increasing the verbosity of the getattr and setattr docs, all in all I think I'm +0 to adding the note and -0 to just closing the bug as by design and no doc change needed.
----------
keywords: +patch
nosy: +catalin.iacob
title: hasattr doensn't show private (double underscore) attributes exist -> hasattr doesn't show private (double underscore) attributes exist
Added file: http://bugs.python.org/file26289/get-set-attr-private-name-mangling.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8264>
_______________________________________
More information about the Python-bugs-list
mailing list