LWN.net Logo

Various notes, all about Python

Various notes, all about Python

Posted Sep 7, 2006 7:42 UTC (Thu) by fwenzel (guest, #33783)
Parent article: Various notes, all about Python

When they say "partial function application", do they mean Currying?


(Log in to post comments)

Various notes, all about Python

Posted Sep 7, 2006 14:26 UTC (Thu) by Wummel (subscriber, #7591) [Link]

Yes, partial() implements currying. Currying was possible before with the lambda operator, but partial() also allows keyword arguments, plus not all like the lambda operator in Python :)
See also PEP 309.

Various notes, all about Python

Posted Sep 7, 2006 14:59 UTC (Thu) by fwenzel (guest, #33783) [Link]

Ah, thanks a bunch for the link :)

Various notes, all about Python

Posted Sep 7, 2006 16:23 UTC (Thu) by AJWM (guest, #15888) [Link]

> Currying was possible before with the lambda operator,

Making a nice lamb curry, no doubt.

(Sorry, that was bad, but it's almost lunchtime...)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds