Error evaluating numbers starting in zero
Mike Brenner
mikeb at mitre.org
Mon Dec 18 06:00:35 EST 2000
>> 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 int() instead of eval().
So, that may also explain the failure with
i = 08
and with reading in numbers,
the python interpretor must be using EVAL instead of INT?
More information about the Python-list
mailing list