New submission from Sasa Banjac:
Hello!
I am using the calendar.leapdays(y1,y2) function. It should return the number
of leap years betwwen y1 and y2 (exclusive). However the function still cant
process mutliple centuries.
Example: between 1900 and 2000 we have 24 leap years:
Peter Inglesby added the comment:
This behaviour is correct. Years divisible by 4 are leap years, except years
divisible by 100, except years divisible 400.
Source http://en.wikipedia.org/wiki/Leap_year.
--
nosy: +inglesp
___
Python tracker
Changes by Peter Inglesby peter.ingle...@gmail.com:
--
nosy: +larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16078
___
___
Python-bugs-list
Larry Hastings added the comment:
Agreed. Not a bug. Closing the issue.
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16078