[Python-ideas] Attribute-Getter Syntax Proposal

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 8 23:19:50 EST 2019


If we were going to add a syntax for abbreviating lambdas, I would
rather see something more generally useful, e.g.

    x -> x.method()

as an abbrevation for

    lambda x: x.method()

-- 
Greg



More information about the Python-ideas mailing list