"Martin MOKREJŠ" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
int(somestring) without a radix argument requires that somestring be an decimal integer literal and nothing more and nothing else. >>> int('1') 1 >>> int('1.0') Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: invalid literal for int(): 1.0 >>> int('1x') Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: invalid literal for int(): 1x Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list