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


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

Re: Best Practice Question

Started byAlbert Hopkins <marduk@letterboxes.org>
First post2013-02-05 09:50 -0500
Last post2013-02-05 09:50 -0500
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Best Practice Question Albert Hopkins <marduk@letterboxes.org> - 2013-02-05 09:50 -0500

#38197 — Re: Best Practice Question

FromAlbert Hopkins <marduk@letterboxes.org>
Date2013-02-05 09:50 -0500
SubjectRe: Best Practice Question
Message-ID<mailman.1369.1360075809.2939.python-list@python.org>
[...]
> 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

[toc] | [standalone]


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


csiph-web