[issue16078] Calendar.leapdays(y1,y2) bug

2012-09-28 Thread Sasa Banjac
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: 1904,08,12,16,20,2

[issue16078] Calendar.leapdays(y1,y2) bug

2012-09-28 Thread Peter Inglesby
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

[issue16078] Calendar.leapdays(y1,y2) bug

2012-09-28 Thread Peter Inglesby
Changes by Peter Inglesby : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16078] Calendar.leapdays(y1,y2) bug

2012-09-28 Thread Larry Hastings
Larry Hastings added the comment: Agreed. Not a bug. Closing the issue. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker __