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
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com