[Tutor] generating independent random numbers

Peter Otten __peter__ at web.de
Wed Sep 29 13:28:11 CEST 2010


Ewald Ertl wrote:

>> Just an attempt from my side:
> The year 1500 didn't have a 29th of February, the 28th work for me but
> 29th also fails here.
>>>> datetime.date( 1500, 2, 28 )
> datetime.date(1500, 2, 28)
>>>> datetime.date( 1500, 2, 29 )
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ValueError: day is out of range for month

Yes, it's an expected "failure". I should have said that explicitly.

Peter 




More information about the Tutor mailing list