[Python-Dev] Why aren't escape sequences in literal strings handled by the tokenizer? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 18 04:09:56 EDT 2018
- Previous message (by thread): [Python-Dev] Why aren't escape sequences in literal strings handled by the tokenizer?
- Next message (by thread): [Python-Dev] [Python-checkins] bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Eric V. Smith wrote:
I assume the intent is to not throw away any information in the lexer, and give the parser full access to the original string. But that's just a guess.
More likely it's because the lexer is fairly dumb and can basically just recognise regular expressions.
-- Greg
- Previous message (by thread): [Python-Dev] Why aren't escape sequences in literal strings handled by the tokenizer?
- Next message (by thread): [Python-Dev] [Python-checkins] bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]