Method / Functions - What are the differences?
John Posner
jjposner at optimum.net
Tue Mar 2 09:17:00 EST 2010
On 3/2/2010 3:57 AM, Bruno Desthuilliers wrote:
>>
>> With the instance object (if any) and class object available,
>> it's easy to create a method object that wraps the function object.
>
> That's perfect.
Fixed.
> But there's also a typo to fix in the Python implementation of the
> Method object: in the call method, it should inject self.im_self as
> first arg, not self.im_func. This had been spotted by someone named John
> Posner, IIRC !-)
Fixed (oops!).
I've updated the text at this location:
> http://cl1p.net/bruno_0301.rst/
I think the ball is back in your court, Bruno. I'd be happy to help more
-- feel free to contact me off-list, at jjposner at optimum.net.
Best,
John
More information about the Python-list
mailing list