[Python-Dev] whitespace normalization

Tim Peters tim.peters at gmail.com
Wed Apr 25 22:00:04 CEST 2007

> Maybe \s should expand to a single space by the lexer so people who want to
> rely on trailing spaces can be explicit about it.  There already exists
> non-whitespace escape sequences for tabs and newlines.

Trailing whitspace is never significant on a code line, only inside a
multiline string literal.  In the extremely rare cases where one of
those requires trailing spaces, \x20 works fine.

More information about the Python-Dev mailing list