use of hasattr(), getattr(), __dict__, was re: Python evangelists unite!

adina_levin at adina_levin at
Sat Dec 1 08:31:25 EST 2001

What do people think is good-form use of hasattr(), getattr(), and __dict__,
as opposed to bad magic or suboptimal style?

- Adina

"Kragen Sitaker" <kragen at> wrote in message And I don't like
> using hasattr() and getattr() and __dict__ except when I'm extending the
> language, doing things that can't be done without them.


More information about the Python-list mailing list