[Tutor] order of arguments in function

Dick Moores rdm at rcblue.com
Wed Dec 6 07:18:02 CET 2006

Say I have a function,

def my_function(max, min=0):
     return max - min

The order of arguments is counterintuitive, but it seems it can't be 
changed if I want to have a default min. Is there way to write

def my_function(min=0, max):


Dick Moores

More information about the Tutor mailing list