On Mon, 1 Feb 2010 04:52:36 -0800 (PST)
"Edward K. Ream" <[email protected]> wrote:

> if g.isPython3:
>     func = types.MethodType(func, quickMove)
> else:
>     func = types.MethodType(func, None, quickMove)

Blah, I'll just dump that implementation all together, it was really only an 
experiment.

>From http://www.informit.com/articles/article.aspx?p=1357182&seqNum=7

  One subtle feature of Python 3 is that unbound methods are no longer wrapped 
by a types.MethodType object. If you access Foo.instance_method as shown in 
earlier examples, you simply obtain the raw function object that implements the 
method. Moreover, you’ll find that there is no longer any type checking on the 
self parameter. 

no checking on self => more support for duck typing?

Anyway, I'll pull my experiment out of quickMove.py.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to