Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'paths': 0.07; 'linux.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'linux': 0.11; 'wrote:': 0.14; "'/'": 0.16; 'independent,': 0.16; 'paths?': 0.16; 'converted': 0.19; 'header:In-Reply-To:1': 0.21; "what's": 0.23; 'steven': 0.32; 'header:X-Complaints-To:1': 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; 'received:org': 0.38; 'could': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'christian': 0.39; 'windows.': 0.39; 'header:Mime- Version:1': 0.39; 'to:addr:python.org': 0.39; 'schrieb': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Christian Heimes Subject: Re: os.path and Path Date: Thu, 16 Jun 2011 18:32:04 +0200 References: <4DF9AADE.6090609@gmail.com> <4df9b7be$0$29973$c3e8da3$5496439d@news.astraweb.com> <4DFA2C56.2060909@stoneleaf.us> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: smtp.semantics.de User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2.102ipre2 Thunderbird/3.1.10 In-Reply-To: <4DFA2C56.2060909@stoneleaf.us> X-Enigmail-Version: 1.1.2 OpenPGP: id=AD16AB1B; url=http://cheimes.de/heimes.asc 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: 17 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308241939 news.xs4all.nl 49048 [::ffff:82.94.164.166]:58258 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7750 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. :] Christian