"Nicko van Someren" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On 14 Mar 2007, at 23:08, Guido van Rossum wrote: | > IOW, the only thing I'm unsure about is whether int('0012', 0) should | > return 10 or complain like eval('0012') would. Perhaps it's best to | > say that int('0012', 0) is a safer way to parse Python int literals, | > and that would make it an error. | | The current documentation for the int() says "If radix is zero ... | the interpretation is the same as for integer literals." I very much | think that this should remain true.
I agree. Adding an exception just slightly clouds the language. Anyway, int('12',8) in one *less* character to type! Terry Jan Reedy _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com