[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
    04208
        ^
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>
<http://bugs.python.org/issue20608>
_______________________________________


More information about the Python-bugs-list mailing list