Error evaluating numbers starting in zero

Aahz Maruch aahz at panix.com
Sun Dec 17 13:58:45 EST 2000


In article <3A3D07BD.85EFEB3D at wag.caltech.edu>,
Richard P. Muller <rpm at wag.caltech.edu> wrote:
>
>I'm sure people already know about this, but I just got hit with a
>really screwy error.
>
>I have a python checkbook program that evaluates date strings, such as
>"01/31/99". Most dates are fine, but if I have a date such as
>"01/08/99", python runs into an error when it tries to eval("08").

Use mxDateTime
-- 
                      --- Aahz (Copyright 2000 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"Using LOCs as a measure of programmer productivity is like estimating the 
productivity of a welder by the amount of acetylene used."  



More information about the Python-list mailing list