r'\' - python parser bug?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Konstantin Veretennicov

    r'\' - python parser bug?

    Hi,

    recently i tried this:

    ActivePython 2.3.2 Build 232[color=blue][color=green][color=darkred]
    >>> '\\'[/color][/color][/color]
    '\\'[color=blue][color=green][color=darkred]
    >>> r'\'[/color][/color][/color]
    File "<stdin>", line 1
    r'\'
    ^
    SyntaxError: EOL while scanning single-quoted string

    Is this a known issue? Should i submit a bug report to development?

    - kv
  • Michael Hudson

    #2
    Re: r'\' - python parser bug?

    kveretennicov@y ahoo.com (Konstantin Veretennicov) writes:
    [color=blue]
    > Hi,
    >
    > recently i tried this:
    >
    > ActivePython 2.3.2 Build 232[color=green][color=darkred]
    > >>> '\\'[/color][/color]
    > '\\'[color=green][color=darkred]
    > >>> r'\'[/color][/color]
    > File "<stdin>", line 1
    > r'\'
    > ^
    > SyntaxError: EOL while scanning single-quoted string
    >
    > Is this a known issue?[/color]



    Cheers,
    mwh

    --
    To summarise the summary of the summary:- people are a problem.
    -- The Hitch-Hikers Guide to the Galaxy, Episode 12

    Comment

    Working...