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

Thanks,

Dick Moores


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to