This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients Jeffrey.Kintscher, bup, ezio.melotti, gvanrossum, mrabarnett, serhiy.storchaka, taleinat, terry.reedy
Date 2019-11-20.06:09:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2019-11-20 06:09:39gvanrossumsetrecipients: + gvanrossum, terry.reedy, taleinat, ezio.melotti, mrabarnett, serhiy.storchaka, bup, Jeffrey.Kintscher
2019-11-20 06:09:39gvanrossumsetmessageid: <>
2019-11-20 06:09:39gvanrossumlinkissue37367 messages
2019-11-20 06:09:39gvanrossumcreate