[New-bugs-announce] [issue20608] 'SyntaxError: invalid token' is unfriendly

Marius Gedminas report at bugs.python.org
Wed Feb 12 15:03:20 CET 2014

New submission from Marius Gedminas:

Type something like the following at the interpreter prompt:

>>> 04208
  File "<stdin>", line 1
SyntaxError: invalid token

This is not very descriptive.  I suggest "SyntaxError: invalid octal digit".

components: Interpreter Core
messages: 211090
nosy: mgedmin
priority: normal
severity: normal
status: open
title: 'SyntaxError: invalid token' is unfriendly
versions: Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list