Tuesday, 6 August 2013

what is the name of that in python

what is the name of that in python

I know what are closures and what are lambda functions but I want to know
what is the name of that :
>>> def foo(a, b):
>>> return a + b
>>>
>>> bar = foo
>>> bar(1, 1)
>>> 2
I just want to know the fact of bind a function in a variable

No comments:

Post a Comment