Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38205
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-02-05 08:40 -0800 |
| References | <5110F277.9020205@davea.name> <1931346778.15606854.1360074752203.JavaMail.root@sequans.com> <mailman.1370.1360081284.2939.python-list@python.org> |
| Subject | Re: Best Practice Question |
| From | Anthony Correia <akcorreia@gmail.com> |
| Message-ID | <mailman.1372.1360083143.2939.python-list@python.org> (permalink) |
On Tuesday, February 5, 2013 10:17:54 AM UTC-5, pytho...@tim.thechases.com wrote:
> On Tue, 5 Feb 2013 15:32:32 +0100 (CET), Jean-Michel Pichavant wrote:
>
> > 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
>
>
>
> I hit this all the time with Vim's path-completion (":help
>
> i_CTRL-X_CTRL-F") on Win32 which puts a trailing "\" on
>
> directory-names. I just need to remember to remove it, a task made
>
> easier because the syntax highlighting correctly shows how Python
>
> interprets it (i.e., the string is still continued).
>
>
>
> -tkc
Sorry about that I hit the touchpad on my laptop by mistake. Beside the using single '\' vs a double '\\' does that look ok?
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Best Practice Question python.list@tim.thechases.com - 2013-02-05 09:17 -0600
Re: Best Practice Question Anthony Correia <akcorreia@gmail.com> - 2013-02-05 08:40 -0800
Re: Best Practice Question Joel Goldstick <joel.goldstick@gmail.com> - 2013-02-05 11:53 -0500
Re: Best Practice Question Dave Angel <d@davea.name> - 2013-02-05 13:10 -0500
Re: Best Practice Question Anthony Correia <akcorreia@gmail.com> - 2013-02-05 08:40 -0800
csiph-web