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


Groups > comp.lang.python > #53785

Re: How to split with "\" character, and licence copyleft mirror of ©

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <random832@fastmail.us>
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; 'interpreter': 0.05; 'paths': 0.07; 'removes': 0.07; 'string': 0.09; 'apis': 0.09; 'prefix': 0.09; 'received:internal': 0.09; 'subject:How': 0.10; 'anyway': 0.14; 'windows': 0.15; 'backslash': 0.16; 'backward': 0.16; 'magic': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'pathname': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:compute4.internal': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'slash': 0.16; 'subject:mirror': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'meant': 0.20; 'command': 0.22; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; 'sep': 0.31; 'open': 0.33; 'device': 0.34; 'received:66': 0.35; 'subject:with': 0.35; 'there': 0.35; 'received:10': 0.37; 'handle': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'free': 0.61; 'strictly': 0.61; 'header:Message-Id:1': 0.63; 'forward': 0.65; 'worth': 0.66; 'surrounding': 0.68; 'limit': 0.70; 'subjectcharset:utf-8': 0.72; '2013,': 0.91; 'relating': 0.93
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= 8nhtYwhDynqZkdU0Kt/bwaSgBtw=; b=IweNlZTu3qWQxZ9+PpXonrogT7tUAtod fl/ZuY5Pvx683/lKrE44qhNva1ba02+j1THHyvhf1dTfxQrjum/xRdVk0alXgbwb 7BCeV4RN+f2GKgLmPjfIAUTzXG3hIsnG1Pe6vhj6jb9I18ahWbWqBYHkeL4VeozP 6PNzQNzpMDI=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=8nhtYwhDynqZkdU0Kt/bwaSgBtw=; b=Sle zqktRYcesL7CcsgpaRB9dkb/Qb39tOPNdb68bz+pghsVpqzW942rex2ZOXZHgbUO qvEsXoMfZCBChMDvQYAXpJ2f4UeYKweeZQqOyAEiYm8qIsb0PPjoPMaytEtWhr68 4icSNI5CGQ0/AZlIgnnzgx+3iI187idfdQraGQVk=
X-Sasl-Enc u+V5cDIJMFvGh7wljzLYJhDAMVZlShD7XpsFRijqSq32 1378474140
From random832@fastmail.us
To python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-22680048
In-Reply-To <84ji2914grkpljfom0kihfpfvlo33bssbo@4ax.com>
References <c795fae4-2b38-4d81-a552-a69febdac0c0@googlegroups.com> <r4u729t37qllb5dfcc7qmq5hpsi8apl6gf@4ax.com> <mailman.513.1378154810.19984.python-list@python.org> <5225443e$0$6599$c3e8da3$5496439d@news.astraweb.com> <20130903053159.5221f886@bigbox.christie.dr> <mailman.10.1378233513.5461.python-list@python.org> <84ji2914grkpljfom0kihfpfvlo33bssbo@4ax.com>
Subject Re: How to split with "\" character, and licence copyleft mirror of ©
Date Fri, 06 Sep 2013 09:29:00 -0400
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.126.1378474142.5461.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378474142 news.xs4all.nl 15922 [2001:888:2000:d::a6]:50294
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53785

Show key headers only | View raw


On Thu, Sep 5, 2013, at 23:33, Tim Roberts wrote:
> random832@fastmail.us wrote:
> >
> >Of course, in 99% of situations where you can use a windows pathname in
> >Python, you are free to use it with a forward slash instead of a
> >backslash.
> 
> This is actually worth repeating, because it's not well known.
> 
> ALL Windows APIs handle forward and backward slashes interchangably.  It
> is only the command interpreter that requires the backslash.

Technically, that's not strictly true. There are certain strings you can
open that will only work with backslashes, relating to device paths
and/or the magic \\?\ prefix that removes the PATH_MAX limit
(CreateFileW only). That was what I meant by 99%.

And many situations in the command interpreter that require a backslash
can be used with forward slash by surrounding the string in quotes,
which you need to do anyway when you have an arbitrary string that may
contain spaces.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to split with "\" character, and licence copyleft mirror of © materile11@gmail.com - 2013-09-01 17:03 -0700
  Re: How to split with "\" character, and licence copyleft mirror of © Cameron Simpson <cs@zip.com.au> - 2013-09-02 10:23 +1000
  Re: How to split with "\" character, and licence copyleft mirror of © Tim Chase <python.list@tim.thechases.com> - 2013-09-01 19:34 -0500
    Re: How to split with "\" character, and licence copyleft mirror of © materile11@gmail.com - 2013-09-01 21:20 -0700
  Re: How to split with "\" character, and licence copyleft mirror of © Tim Chase <python.list@tim.thechases.com> - 2013-09-01 19:40 -0500
  Re: How to split with "\" character, and licence copyleft mirror of © Tim Roberts <timr@probo.com> - 2013-09-01 19:40 -0700
    Re: How to split with "\" character, and licence copyleft mirror of © Ethan Furman <ethan@stoneleaf.us> - 2013-09-02 13:22 -0700
      Re: How to split with "\" character, and licence copyleft mirror of © Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-03 02:06 +0000
        Re: How to split with "\" character, and licence copyleft mirror of © Tim Chase <python.list@tim.thechases.com> - 2013-09-03 05:31 -0500
        Re: How to split with "\" character, and licence copyleft mirror of © random832@fastmail.us - 2013-09-03 14:31 -0400
          Re: How to split with "\" character, and licence copyleft mirror of © Tim Roberts <timr@probo.com> - 2013-09-05 20:33 -0700
            Re: How to split with "\" character, and licence copyleft mirror of � Terry Reedy <tjreedy@udel.edu> - 2013-09-06 02:15 -0400
            Re: How to split with "\" character, and licence copyleft mirror of © random832@fastmail.us - 2013-09-06 09:29 -0400
            Re: How to split with "\" character, and licence copyleft mirror of � Fábio Santos <fabiosantosart@gmail.com> - 2013-09-11 11:16 +0100

csiph-web