Message118904
I would just add an exception to the isleap() function.
def isleap(year):
"""Return 1 for leap years, 0 for non-leap years."""
try:
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
except TypeError:
# somehow inform the user that the argument 'year' must be an integer |
|
Date |
User |
Action |
Args |
2010-10-16 22:21:37 | Retro | set | recipients:
+ Retro, georg.brandl, terry.reedy, belopolsky, pjenvey, eric.araujo, r.david.murray, shadikka |
2010-10-16 22:21:37 | Retro | set | messageid: <1287267697.78.0.466583189081.issue10073@psf.upfronthosting.co.za> |
2010-10-16 22:21:36 | Retro | link | issue10073 messages |
2010-10-16 22:21:36 | Retro | create | |
|