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


Groups > comp.lang.python > #38205

Re: Best Practice Question

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <akcorreia@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'syntax': 0.03; '(python': 0.05; 'puts': 0.07; 'subject:Question': 0.07; 'trailing': 0.07; 'python': 0.09; 'highlighting': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; "'\\\\'": 0.16; '-tkc': 0.16; 'interprets': 0.16; 'mistake.': 0.16; 'syntaxerror:': 0.16; 'string': 0.17; 'wrote:': 0.17; 'feb': 0.19; '(i.e.,': 0.23; 'task': 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; '+0100': 0.27; "i'm": 0.29; 'knows': 0.30; 'anyone': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'correctly': 0.37; 'does': 0.37; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'sure': 0.38; 'shows': 0.38; 'notice': 0.39; 'remove': 0.61; 'ever': 0.63; 'laptop': 0.66; '2013': 0.84; 'beside': 0.84; 'ok?': 0.84; 'received:209.85.216.184': 0.84; 'subject:Best': 0.91
X-Received by 10.49.15.38 with SMTP id u6mr2108590qec.8.1360082415531; Tue, 05 Feb 2013 08:40:15 -0800 (PST)
Newsgroups comp.lang.python
Date Tue, 5 Feb 2013 08:40:15 -0800 (PST)
In-Reply-To <mailman.1370.1360081284.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=24.228.22.138; posting-account=eRLdPgoAAADBDheFQT9SZtkvQEOafxD_
References <5110F277.9020205@davea.name> <1931346778.15606854.1360074752203.JavaMail.root@sequans.com> <mailman.1370.1360081284.2939.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 24.228.22.138
MIME-Version 1.0
Subject Re: Best Practice Question
From Anthony Correia <akcorreia@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.1372.1360083143.2939.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360083143 news.xs4all.nl 6853 [2001:888:2000:d::a6]:36325
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38205

Show key headers only | View raw


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 | NextPrevious in thread | Find similar | Unroll thread


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