Aug. 23, 2010
4:16 p.m.
Michael Foord wrote:
It would be backwards incompatible with usage of hasattr for dynamically created 'members' using __getattr__ though.
Also keep in mind that builtin types mostly don't keep their attributes in dictionaries. To make this work properly, hasattr would need its own special method. -- Greg