[Python-ideas] Make partial a built-in

Michel Desmoulin desmoulinmichel at gmail.com
Mon Sep 19 11:24:10 EDT 2016


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.


More information about the Python-ideas mailing list