parameter name conflict. How to solve?

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Tue Mar 8 02:11:22 EST 2005


Steven Bethard wrote:

>> If you ask: why do you choose these names? The answer is: they need
>> to be conformable with other functions, parameter names.

Is this a style guide thing?

>> 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)

Why not just:

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

?

Tim Delaney



More information about the Python-list mailing list