Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'paths': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'linux.': 0.09; 'message- id:@stoneleaf.us': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'linux': 0.11; '>>>': 0.12; 'wrote:': 0.14; "'/'": 0.16; 'guessing': 0.16; 'independent,': 0.16; 'paths?': 0.16; 'received:67.18.44': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'converted': 0.19; 'phrase': 0.19; 'header:In-Reply-To:1': 0.21; 'right.': 0.22; "what's": 0.23; "i'm": 0.27; "didn't": 0.31; 'steven': 0.32; 'to:addr:python-list': 0.33; 'to?': 0.34; 'header :User-Agent:1': 0.35; "d'aprano": 0.35; 'actual': 0.36; 'platform': 0.36; 'two': 0.37; 'could': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'christian': 0.39; 'windows.': 0.39; 'to:addr:python.org': 0.39; 'received:websitewelcome.com': 0.67; 'schrieb': 0.84 Date: Thu, 16 Jun 2011 10:07:58 -0700 From: Ethan Furman User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: python-list@python.org Subject: Re: os.path and Path References: <4DF9AADE.6090609@gmail.com> <4df9b7be$0$29973$c3e8da3$5496439d@news.astraweb.com> <4DFA2C56.2060909@stoneleaf.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: mail.admailinc.com ([192.168.10.136]) [72.11.125.166]:1256 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 3 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308243778 news.xs4all.nl 49039 [::ffff:82.94.164.166]:37247 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7753 Christian Heimes wrote: > Am 16.06.2011 18:16, schrieb Ethan Furman: >> Steven D'Aprano wrote: >>> If Path is intended to be platform independent, then >>> these two paths could represent the same location: >>> >>> 'a/b/c:d/e' # on Linux or OS X >>> 'a:b:c/d:e' # on classic Mac pre OS X >>> >>> and be impossible on Windows. So what's the canonical path it should be >>> converted to? >> Are these actual valid paths? I thought Linux used '/' and Mac used ':'. > > "c:d" is a valid directory name on Linux. :] Right. I didn't phrase that at all well. In Steven's examples, which are the path pieces? I'm guessing 'a', 'b', 'c:d', 'e'; and 'a', 'b', 'c/d', 'e'. ~Ethan~