Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '2.7': 0.04; 'library,': 0.05; 'url:bugs': 0.05; 'suggesting': 0.07; '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; 'url:moin': 0.12; 'wrote:': 0.14; '3.2,': 0.16; '>because': 0.16; 'from:addr:acm.org': 0.16; 'furman': 0.16; 'general.': 0.16; 'library?': 0.16; 'received:198.144': 0.16; 'discussion': 0.19; 'jason': 0.22; 'fine': 0.22; 'unlikely': 0.23; 'url:wiki': 0.23; 'object': 0.26; 'problem': 0.28; 'indicated': 0.29; 'bit': 0.30; 'module': 0.30; "can't": 0.32; 'received:198': 0.32; 'steven': 0.32; 'header:X -Complaints-To:1': 0.32; 'to:addr:python-list': 0.33; 'with.': 0.33; 'too': 0.33; "i've": 0.33; 'chris': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; "d'aprano": 0.35; 'reference': 0.35; 'quite': 0.36; 'charset:us-ascii': 0.36; 'bother': 0.37; 'think': 0.38; 'url:python': 0.38; 'received:org': 0.38; 'url:org': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'header:Mime- Version:1': 0.39; 'either': 0.39; 'to:addr:python.org': 0.39; 'your': 0.60; 'back': 0.63; 'here': 0.66; 'article': 0.76; 'incomplete,': 0.84; 'ultimately,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Deily Subject: Re: os.path and Path Date: Thu, 16 Jun 2011 19:55:24 -0700 References: <4df9ad53$0$29973$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: baybryj.net User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) 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: 30 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308279344 news.xs4all.nl 49042 [::ffff:82.94.164.166]:44203 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7794 In article , Chris Torek wrote: > >Steven D'Aprano wrote: > >> Why do you think there's no Path object in the standard library? *wink* > > In article > Ethan Furman wrote: > >Because I can't find one in either 2.7 nor 3.2, and every reference I've > >found has indicated that the other Path contenders were too > >all-encompassing. > > What I think Steven D'Aprano is suggesting here is that the general > problem is too hard, and specific solutions too incomplete, to > bother with. > > Your own specific solution might work fine for your case(s), but it > is unlikely to work in general. Note there was quite a bit of discussion some years back about adding Jason Orendorff's Path module to the standard library, a module which had and still has its fans. Ultimately, though, it was vetoed by Guido. http://bugs.python.org/issue1226256 http://wiki.python.org/moin/PathModule -- Ned Deily, nad@acm.org