Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38197 > unrolled thread
| Started by | Albert Hopkins <marduk@letterboxes.org> |
|---|---|
| First post | 2013-02-05 09:50 -0500 |
| Last post | 2013-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.
Re: Best Practice Question Albert Hopkins <marduk@letterboxes.org> - 2013-02-05 09:50 -0500
| From | Albert Hopkins <marduk@letterboxes.org> |
|---|---|
| Date | 2013-02-05 09:50 -0500 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web