While lambda are a great tools that can do the job of partial, partial
is always a superior solution when trying to curry a Python function
because it's explicit and easier to debug.

Having to import it everytime means I usually go for a lambda out of
lazyness, but also means that most people don't know about it.

If think having it in the builtins would promote cleaner, faster code,
but would also facilitate and encourage coding patterns using curried
functions.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to