parameter name conflict. How to solve?
Bo Peng
bpeng at rice.edu
Tue Mar 8 01:00:51 EST 2005
Dear list,
If you ask: why do you choose these names? The answer is: they need to
be conformable with other functions, parameter names.
I have a function that pretty much like:
def output(output=''):
print output
and now in another function, I need to call output function, with again
keyword parameter output
def func(output=''):
output(output=output)
Naturally, I get 'str' object is not callable. Is there a way to tell
func that the first output is actually a function? (like in C++,
::output(output) )
Thanks.
Bo
More information about the Python-list
mailing list