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-January/019561.html below:

[Python-Dev] Utopian String Interpolation

[Python-Dev] Utopian String Interpolation [Python-Dev] Utopian String InterpolationM.-A. Lemburg mal@lemburg.com
Thu, 17 Jan 2002 15:02:11 +0100
Paul Svensson wrote:
> 
> On Thu, 17 Jan 2002, M.-A. Lemburg wrote:
> 
> >Paul Prescod wrote:
> >>
> >> The documentation says:
> >>
> >> "Unlike Standard  , 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.)"
> >>
> >> That's a weird thing to say. What could be more helpful for debugging
> >> than a good old SyntaxError???
> >
> >If there's nothing wrong with the escape why raise a
> >SyntaxError ?
> 
> I would certainly claim that an unrecognized escape sequence _is_ wrong.

Depending on how you see it, an "unrecognized escape sequence" is 
not an escape sequence to begin with :-)

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/



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