3 ms·
Don't try to fake anonymous functions in Python. Use its strengths: decorators, generators, etc. Anonymous functions work well (err, passably) in JavaScript a
by eevee 12y ago
Don't try to fake anonymous functions in Python. Use its strengths: decorators, generators, etc.
Anonymous functions work well (err, passably) in JavaScript and Perl. They don't really work in Python, and of course you'll just run into pain if you try to force them to.
Perhaps also make some noise about this PEP: http://legacy.python.org/dev/peps/pep-0403/ http://legacy.python.org/dev/peps/pep-0403/