Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.08; 'python': 0.08; '2006,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'url:peps': 0.09; 'antoine': 0.16; 'from:addr:acm.org': 0.16; 'pitrou,': 0.16; 'subject:String': 0.16; 'wrote:': 0.18; 'written': 0.19; 'seems': 0.20; 'maybe': 0.21; 'discussion': 0.22; 'url:dev': 0.23; 'bruce': 0.24; 'class': 0.29; 'problem': 0.29; 'ran': 0.30; 'solved': 0.30; 'str': 0.30; 'there': 0.33; 'header :User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.34; 'to:addr :python-list': 0.35; 'url:python': 0.35; 'core': 0.36; 'received:org': 0.36; 'created': 0.37; 'charset:us-ascii': 0.37; 'could': 0.38; 'url:org': 0.39; 'goes': 0.39; 'might': 0.40; 'to:addr:python.org': 0.40; 'back': 0.60; 'discovered': 0.70; 'article': 0.73; 'received:93': 0.79; 'received:fastwebnet.it': 0.91; 'subject:Automatic': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Deily Subject: Re: Automatic Type Conversion to String Date: Wed, 15 Feb 2012 19:21:53 +0100 References: <090e2893-7a1c-4b11-9e45-974ed33e7b77@i18g2000yqf.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 93-41-188-50.ip82.fastwebnet.it 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1329330127 news.xs4all.nl 6895 [2001:888:2000:d::a6]:36382 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20455 In article , Bruce Eckel wrote: > Also, I discovered that the attempt to create a "Path" class goes back > to 2006, where it created a lot of discussion and was finally shelved: > http://www.python.org/dev/peps/pep-0355/ > > A significant part of the problem seems to be that there was no > inheritance from str at the time, so maybe a lot of the issues they > ran into could be solved now. You might want to take a look at pathlib, a current attempt at providing object-oriented paths, written by Antoine Pitrou, one of the Python core developers: http://pypi.python.org/pypi/pathlib -- Ned Deily, nad@acm.org