➜

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 shadikka
Recipients shadikka
Date 2010-10-12.13:47:54
SpamBayes Score 4.1897563e-10
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
calendar.isleap() doesn't enforce any types, leading to string formatting errors when a string is passed to it:

>>> calendar.isleap("2011")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/calendar.py", line 99, in isleap
    return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
TypeError: not all arguments converted during string formatting

A quick peek at the SVN shows that the problem still exists.
History
Date User Action Args
2010-10-12 13:47:56shadikkasetrecipients: + shadikka
2010-10-12 13:47:56shadikkasetmessageid: <[email protected]>
2010-10-12 13:47:55shadikkalinkissue10073 messages
2010-10-12 13:47:54shadikkacreate