int('0.0') throws an exception

Andrew Dalke adalke at
Thu Jan 30 03:25:58 CET 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

					dalke at

More information about the Python-list mailing list