[Python-Dev] Draft proposal: Implicit self in Python 3.0

"Martin v. Löwis" martin at v.loewis.de
Sun Jan 8 12:03:55 CET 2006


Ian Bicking wrote:
> would have to be translated to this this:
> 
>    inst = Foo()
>    f = Foo.bar
>    meth = bind(f, inst)
>    print meth(1, 2)

+1 for an explicit "bind unbound method operation", although I
would spell it as

    inst = Foo()
    f = Foo.bar
    meth = f.bind(inst)
    print meth(1, 2)

Regards,
Martin


More information about the Python-Dev mailing list