[New-bugs-announce] [issue33305] Improve syntax error for numbers with leading zero
Steven D'Aprano
report at bugs.python.org
Tue Apr 17 21:47:11 EDT 2018
New submission from Steven D'Aprano <steve+python at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33305>
_______________________________________
More information about the New-bugs-announce
mailing list