Partially evaluated functions

Venkatesh Prasad Ranganath rvprasad at cis.ksu.edu
Tue Jun 19 19:23:13 EDT 2001


Hi,

I have used ML and it is interesting how it is possible to specialize a function
by partially evaluating when in curried form.

Is partially evaluated functions possible in python?  If there has been a
discussion about it, where can I find the jist of the discussion?

def conv(a, b, c):
    return (a + b) * c

faren2cel = conv(b = -32, c = 5 / 9)

The above example is naive, but surely used in proper way it can make life easy
while programming.  I think this would be great when trying to use patterns.

waiting for reply,

-- 
Venkatesh Prasad Ranganath



More information about the Python-list mailing list