Guido van Rossum <gu...@python.org> added the comment:

For sure the Python tokenizer/parser should reject octal escapes that produce 
values >= 256. Certainly in bytes strings. Probably also in text strings 
(nobody using Unicode thinks in octal). This is ancient behavior though (it's 
the same in 2.7) so it may require a deprecation for the text string case. (For 
byte strings, it should become an error in 3.9 -- dropping the top bit is 
nonsensical.)

The regex parser should not be changed.

----------

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

Reply via email to