A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-January/059493.html below:

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

[Python-Dev] Draft proposal: Implicit self in Python 3.0 [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4