If at all, it should be function.bind(). It was discussed and dropped; I don't remember why, but one problem is that it looks like an in-place modification. Personally I think that higher order programming should not be encouraged (as opposed to functional programming), and from the lambda syntax I understand it isn't. Elazar בתאריך יום ב׳, 19 בספט' 2016, 18:24, מאת Michel Desmoulin < desmoulinmichel@gmail.com>:
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/