hasattr(obj, attr) overloading?

claudius at catlover.com claudius at catlover.com
Sat Oct 30 22:54:59 EDT 1999


Is there a way to overload the hasattr method (by default it calls __getattr__
and checks for an exception.  However, my __getattr__ can be a heavy hit that
I'd rather avoid for hasattr calls.)

If not, perhaps a feature for the next minor revision?




More information about the Python-list mailing list