Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38263 > unrolled thread

Re: Best Practice Question

Started byJean-Michel Pichavant <jeanmichel@sequans.com>
First post2013-02-06 11:10 +0100
Last post2013-02-06 11:10 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: Best Practice Question Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-02-06 11:10 +0100

#38263 — Re: Best Practice Question

FromJean-Michel Pichavant <jeanmichel@sequans.com>
Date2013-02-06 11:10 +0100
SubjectRe: Best Practice Question
Message-ID<mailman.1406.1360145450.2939.python-list@python.org>
----- Original Message -----
> 
> [...]
> > By the way, did someone ever notice that r'\' fails ? I'm sure
> > there's a
> > reason for that... (python 2.5) Anyone knows ?
> > 
> > r'\'
> > SyntaxError: EOL while scanning single-quoted string
> > 
> >
> "Even in a raw string, string quotes can be escaped with a backslash,
> but the backslash remains in the string; for example, r"\"" is a
> valid
> string literal consisting of two characters: a backslash and a double
> quote; r"\" is not a valid string literal (even a raw string cannot
> end
> in an odd number of backslashes). Specifically, a raw string cannot
> end
> in a single backslash (since the backslash would escape the following
> quote character). " -- python docs
> --
> http://mail.python.org/mailman/listinfo/python-list
> 

Thanks for the pointer.

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web