[Python-ideas] Fwd: Define a method or function attribute outside of a class with the dot operator
greg.ewing at canterbury.ac.nz
Sat Feb 11 00:33:39 EST 2017
Chris Angelico wrote:
> Which is why these proposals always seem to gravitate to "anything you
> can assign to",
There might be some parsing difficulties with that, e.g.
def foo(x)(y, z):
That should be acceptable, because foo(x) is something
assignable, but foo(x) looks like the beginning of the
definition of a function called foo. I'm not sure whether
the parser would cope with that.
More information about the Python-ideas