osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Why aren't escape sequences in literal strings handled by the tokenizer?


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