Wrapper objects

Kent Johnson kent3737 at yahoo.com
Fri Dec 10 14:04:23 CET 2004


Nick Coghlan wrote:
> Simon Brunning wrote:
>> This work - 
>> <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52295>?
>>
> 
> Only for old-style classes, though. If you inherit from object or 
> another builtin, that recipe fails.

Could you explain, please? I thought __getattr__ worked the same with new- and old-style classes?

Thanks,
Kent



More information about the Python-list mailing list