int('0.0') throws an exception

Andrew Dalke adalke at mindspring.com
Wed Jan 29 21:25:58 EST 2003


Bjorn Pettersen wrote:
> It behaves exactly as documented (Library Ref. 2.1): "If the argument is
> a string, it must contain a possibly signed decimal number representable
> as a Python integer...".

Huh.  Since int takes an optional radix, shouldn't that "decimal" be
omitted?

					Andrew
					dalke at dalkescientific.com





More information about the Python-list mailing list