Referring to class methods in class attributes

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed Feb 17 15:34:51 EST 2010


John Posner a écrit :
> On 2/17/2010 2:44 PM, Bruno Desthuilliers wrote:
>> 
> Very nice writeup, Bruno -- thanks!

<blush />

> <snip>
> 
>>
>>
>>      def __call__(self, *args, **kw):
>>          # XXX : all sanity checks removed for readability
>>          if self.im_self:
>>              args = (self.im_func,) + args
> 
> In the line above, I think you meant:
> 
>                args = (self.im_self,) + args

oops :?

Yes, indeed. Thanks for the correction.



More information about the Python-list mailing list