New submission from Steven D'Aprano <steve+pyt...@pearwood.info>: The Python 2.x syntax for octal integers is a syntax error in 3.x, but the error message is very uninformative:
SyntaxError: invalid token Can this be improved? Perhaps to something like: invalid token, use 0o prefix for octal integers (see also #33304) ---------- messages: 315431 nosy: steven.daprano priority: normal severity: normal status: open title: Improve syntax error for numbers with leading zero type: behavior versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33305> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com