r'\' - python parser bug?
Michael Hudson
mwh at python.net
Mon May 24 10:37:30 EDT 2004
kveretennicov at yahoo.com (Konstantin Veretennicov) writes:
> Hi,
>
> recently i tried this:
>
> ActivePython 2.3.2 Build 232
> >>> '\\'
> '\\'
> >>> r'\'
> File "<stdin>", line 1
> r'\'
> ^
> SyntaxError: EOL while scanning single-quoted string
>
> Is this a known issue?
http://www.python.org/doc/faq/general.html#why-can-t-raw-strings-r-strings-end-with-a-backslash
Cheers,
mwh
--
To summarise the summary of the summary:- people are a problem.
-- The Hitch-Hikers Guide to the Galaxy, Episode 12
More information about the Python-list
mailing list