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

2014-01-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review stage: needs patch - patch review versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

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

2012-07-07 Thread Catalin Iacob
Catalin Iacob iacobcata...@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