[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>  On Jul 3, 7:15 am, alf <[EMAIL PROTECTED]> wrote:
> > question without words:
> >
> >  >>> r"\"
> >    File "<stdin>", line 1
> >      r"\"
> >         ^
> > SyntaxError: EOL while scanning single-quoted string
> >  >>> r"\ "
> > '\\ '
> 
>  One slash escapes the following character, so the proper way of
>  writing it is either
> 
>  r"\\" or r"\""

I don't think so...

  >>> r"\\"
  '\\\\'
  >>> r"\""
  '\\"'

Indicating that all the \ in the above are inserted literally.

Maybe you meant

  >>> "\\"
  '\\'
  >>> "\""
  '"'

-- 
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to