New submission from Peter Wentworth <p.wentwo...@ict.ru.ac.za>: In Python 3 we no longer have octal literals. The assignment x = 0050 gives an invalid token error.
But the assignment y = int("0050") assigns the value 50 to y. I would advocate consistency in the two situations, and prefer that leading zeros should be permitted on numbers. ---------- components: Interpreter Core messages: 136352 nosy: Peter.Wentworth priority: normal severity: normal status: open title: Inconsistent leading zero treatment type: compile error versions: Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12127> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com