parameter name conflict. How to solve?

Daniel Dittmar daniel.dittmar at sap.corp
Tue Mar 8 04:18:18 EST 2005


Bo Peng wrote:
> 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) )

output_alias = output

def func (output=''):
     output_alias(output=output)

Daniel



More information about the Python-list mailing list