Reverse argument order

David Bolen db3l at fitlinxx.com
Fri Oct 19 17:35:48 EDT 2001


David Brady <daves_spam_dodging_account at yahoo.com> writes:

> The thing to note is that it's sort of a positional
> notation that is backwards from most programming
> languages.  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.

BTW, others have suggested ways to handle the separate arguments, but
one other option you might consider is just taking the time value as a
string and parsing it yourself.  You could implement whatever default
behavior or handling of timestamps you'd like that way.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list