Ezio Melotti <ezio.melo...@gmail.com> added the comment: The leading zero is used to define octal numbers, 8 and 9 are not valid octal digits, see http://docs.python.org/reference/lexical_analysis.html#integer-and-long-integer-literals
Also, you don't need to use eval to reproduce that behavior. The number displayed is the decimal equivalent: >>> 07 7 >>> 010 8 ---------- nosy: +ezio.melotti _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5133> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com