Marius Gedminas added the comment:

I was looking at the current hg tip.  The lexer emits E_TOKEN errors for the 
following cases:
- invalid hex digit
- invalid octal digit
- invalid binary digit
- invalid digit in float exponent
- old-style octal constant (e.g. 001), which is no longer accepted

I think I can come up with a patch that replaces them all with different error 
codes (E_BAD_HEX_DIGIT etc.) and different error messages.  Does that sound 
like an acceptable change?  (I never contributed non-documentation patches to 
CPython before.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20608>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to