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/2002-June/025804.html below:

[Python-Dev] PEP 292, Simpler String Substitutions

[Python-Dev] PEP 292, Simpler String SubstitutionsOren Tirosh oren-py-d@hishome.net
Sat, 22 Jun 2002 00:27:37 +0300
On Fri, Jun 21, 2002 at 12:54:53PM -0700, Paul Prescod wrote:
> > No need for double backslash. No need for a special string prefix either
> > because \( currently has no meaning.
> 
> I like this idea but note that \( does have a current meaning:
> 
> >>> "\("
> '\\('
> >>> "\(" =="\\("
> 1

"""Unlike Standard C, all unrecognized escape sequences are left in the 
string unchanged, i.e., the backslash is left in the string. (This behavior 
is useful when debugging: if an escape sequence is mistyped, the resulting 
output is more easily recognized as broken.) """

In other words, programs that rely on this beaviour are broken.

	Oren





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