[Python-Dev] Strings: '\012' -> '\n'
Guido van Rossum
guido@python.org
Mon, 15 Jan 2001 22:28:38 -0500
> > So... i'm submitting a patch that causes the three most common
> > special whitespace characters, '\n', '\r', and '\t', to appear in
> > their natural form rather than as octal escapes when strings are
> > printed and repr()ed.
>
> Works for me. I'd add \v, \b and \a to cover the whole ANSI C
> standard escape set (hmmm...am I missing any?)
You missed \f [*]. Unclear to me whether it's a good idea to add the
lesser-known ones; they are just as likely binary gobbledegook rather
than what their escapes stand for.
[*] http://www.python.org/doc/current/ref/strings.html
--Guido van Rossum (home page: http://www.python.org/~guido/)