Jamesie Pic wrote:
def o.bar(self): ...
You could get almost the same effect with
from functools import partial
def bar(self, other_args):
...
o.bar = partial(bar, o)
But IMO this is nowhere near being a common enough thing to
do to justify having special syntax for it.
--
Greg
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
