A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-December/094522.html below:

[Python-Dev] Backslash at end of raw string

[Python-Dev] Backslash at end of raw string [Python-Dev] Backslash at end of raw stringRob Cliffe rob.cliffe at btinternet.com
Sat Dec 12 09:36:34 CET 2009
Python (e.g. 2.5) does not accept a backslash as the LAST character of a raw string:

>>> r"\"
  File "<stdin>", line 1
    r"\"
        ^
Syntax Error: EOL while scanning single-quoted string.

path = r'\MyDir\MySubDir\'  # raises same error
path = r'\MyDir\MySubDir'   # no error

Isn't this a bug?

Rob Cliffe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20091212/a8afb55b/attachment.htm>
More information about the Python-Dev mailing list

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