<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Following the
beta 2 announce, I've check the leap year definition in python.<br>
</font></font>
<blockquote type="cite">(- Python header code does not handle leap year
correctly <a class="moz-txt-link-freetext"
href="http://liblas.org/ticket/71">http://liblas.org/ticket/71</a>
)</blockquote>
<blockquote type="cite"> 48 def leap_year(year): <br>
49 if (year % 400) == 0: <br>
50 return True <br>
51 elif (year % 100) == 0: <br>
52 return True <br>
53 elif (year % 4) == 0: <br>
54 return True <br>
55 return False </blockquote>
I think it should be (and according to wikipedia : <a
href="http://en.wikipedia.org/wiki/Leap_year#Algorithm">http://en.wikipedia.org/wiki/Leap_year#Algorithm</a>)
:<br>
51 elif (year % 100) == 0: <br>
52 return <b>False</b><br>
<br>
<br>
Etienne
</body>
</html>