Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.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.032 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'seemed': 0.07; 'path.': 0.09; 'str,': 0.09; 'subclass': 0.09; 'to:addr:comp.lang.python': 0.09; 'subject:String': 0.16; 'cc:addr:python-list': 0.16; 'converted': 0.18; 'cc:no real name:2**0': 0.21; 'header:In-Reply- To:1': 0.22; 'suspect': 0.24; 'received:209.85.220': 0.25; 'tried': 0.27; 'cc:addr:gmail.com': 0.28; "i'm": 0.28; 'cc:addr:python.org': 0.29; 'str': 0.30; 'thanks': 0.32; 'assigned': 0.32; 'header:User-Agent:1': 0.33; 'object': 0.33; 'mostly': 0.34; 'rather': 0.34; '...': 0.35; 'cc:2**1': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'doing': 0.38; 'think': 0.38; 'received:209': 0.39; 'became': 0.67; 'anytime': 0.74; 'hints?': 0.84; 'idiom': 0.84; 'subject:Automatic': 0.91 Newsgroups: comp.lang.python Date: Mon, 13 Feb 2012 15:18:55 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=63.251.186.252; posting-account=8KgxxAkAAAC-_0mFYDme17S5oyHM521t References: <090e2893-7a1c-4b11-9e45-974ed33e7b77@i18g2000yqf.googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: Automatic Type Conversion to String From: Bruce Eckel To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org, Bruce Eckel 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: , Message-ID: Lines: 4 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1329175143 news.xs4all.nl 6949 [2001:888:2000:d::a6]:37306 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20379 I'm willing to subclass str, but when I tried it before it became a little = confusing -- I think mostly because anytime I assigned to self it seemed li= ke it converted the whole object to a str rather than a Path. I suspect I d= on't know the proper idiom for doing this -- any hints? Thanks ...