[Python-Dev] 'hasattr' is broken by design (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Aug 24 01:16:17 CEST 2010
- Previous message: [Python-Dev] 'hasattr' is broken by design
- Next message: [Python-Dev] 'hasattr' is broken by design
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] 'hasattr' is broken by design
- Next message: [Python-Dev] 'hasattr' is broken by design
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]