Reverse argument order
Terry Reedy
tjreedy at home.com
Fri Oct 19 23:06:16 EDT 2001
"David Brady" <daves_spam_dodging_account at yahoo.com> wrote in message
news:mailman.1003519340.3380.python-list at python.org...
...
> In Python, we're going to force the users
> to put the hours, minutes and seconds as separate
> arguments, but we'd like to allow them to omit the
> higher-order arguments and have them default to zero.
>
> Is it possible to do something like this in Python, to
> reverse the argument order?
I'll just point out that range(n) inserts 0 as the first arg and
treats n as the second. Though awkward, it is a precedent (to be used
sparingly).
Terry J. Reedy
More information about the Python-list
mailing list