Function question
John
nobody at nobody.com
Mon Apr 8 00:55:47 EDT 2002
Hi I have a question:
Let's say there is a function with two arguments.
def add(a,b): return a+b
What I want to do is:
I want to get 'a' dynamically..
But once a value is decided, I want a separate function (say, new_add) that
does
new_add(b) (equals to) add(a,b)
That is, I want the function definition to be dynamic.
Would that be possible? Any comment would be greatly appreciated.
More information about the Python-list
mailing list