This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Retro
Recipients Retro, belopolsky, eric.araujo, georg.brandl, pjenvey, r.david.murray, shadikka, terry.reedy
Date 2010-10-16.22:21:36
SpamBayes Score 0.01973196
Marked as misclassified No
Message-id <1287267697.78.0.466583189081.issue10073@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-10-16 22:21:37Retrosetrecipients: + Retro, georg.brandl, terry.reedy, belopolsky, pjenvey, eric.araujo, r.david.murray, shadikka
2010-10-16 22:21:37Retrosetmessageid: <1287267697.78.0.466583189081.issue10073@psf.upfronthosting.co.za>
2010-10-16 22:21:36Retrolinkissue10073 messages
2010-10-16 22:21:36Retrocreate