
24 Aug
2010
24 Aug
'10
1:16 a.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