[Python-3000] Give power to __getattr__

Nick Coghlan ncoghlan at gmail.com
Tue Apr 25 07:38:48 CEST 2006


Kay Schluehr wrote:
> While observing heated discussions about adaption and generic functions 
> I wonder if this
> is a good opportunity for a modest complaint about the castration of 
> __getattr__ in new style classes.

If you want to get full control back, that's what __getattribute__ is for. . .
Or are you asking for better access to the bits and pieces of 
object.__getattribute__ so that it's easier to customise the operation?
Cheers,
Nick.
-- 
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
 http://www.boredomandlaziness.org


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /