➜

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 belopolsky
Recipients belopolsky, eric.araujo, r.david.murray, shadikka
Date 2010-10-12.18:53:52
SpamBayes Score 1.0672754e-05
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
I would also like to note the following curiosity:

>>> calendar.isleap("%d")
False

I still don't think there is anything worth fixing here, but we can consider replacing year % 4 == 0 predicate with year & 3 == 0 which will change the error raised by isleap("2004") from

TypeError: not all arguments converted during string formatting

to 

TypeError: unsupported operand type(s) for &: 'str' and 'int'

I am not sure if the later is much clearer than the former once you consider obfuscated year & 3 == 0 showing up in the backtrace compared to a clear year % 4 == 0 test.
History
Date User Action Args
2010-10-12 18:53:57belopolskysetrecipients: + belopolsky, eric.araujo, r.david.murray, shadikka
2010-10-12 18:53:57belopolskysetmessageid: <[email protected]>
2010-10-12 18:53:52belopolskylinkissue10073 messages
2010-10-12 18:53:52belopolskycreate