A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/011704.html below:

[Python-Dev] Strings: '\012' -> '\n'

[Python-Dev] Strings: '\012' -> '\n' [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/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4