[Python-ideas] YAML (yet-another-multiline-lambda)
Andrew Barnert
abarnert at yahoo.com
Wed Oct 23 09:57:46 CEST 2013
On Oct 22, 2013, at 12:13, Antony Lee <anntzer.lee at gmail.com> wrote:
> Also, if you really need to bind the first variable and don't want to use partial, you can also use __get__, which exactly creates bound methods: (lambda x: x).__get__(1)() ==> 1.
Do you think this is something that most Python users would understand today, or do you think Python would be a better language if it were a recognized idiom?
I'll answer the other part when I'm in front of a computer.
More information about the Python-ideas
mailing list