Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!xlned.com!feeder5.xlned.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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'terry': 0.07; 'python': 0.08; 'tuple': 0.09; 'am,': 0.12; 'syntax': 0.15; '(read': 0.16; 'places.': 0.16; 'reedy': 0.16; 'subject:syntax': 0.16; 'subject:question': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'header:In- Reply-To:1': 0.22; 'thanks.': 0.25; 'pm,': 0.26; 'lists': 0.28; 'problem': 0.29; 'objects.': 0.30; 'tuples': 0.30; 'x-mailer:apple mail (2.1084)': 0.30; 'objects': 0.32; 'to:addr:python-list': 0.33; 'object': 0.33; 'creates': 0.34; 'rather': 0.34; "i'll": 0.35; 'uses': 0.36; 'post': 0.36; 'charset:us-ascii': 0.36; 'somewhat': 0.38; 'allows': 0.38; 'several': 0.38; 'hoping': 0.38; 'think': 0.38; 'that.': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'your': 0.61; 'header:Message-Id:1': 0.62; '1.5': 0.64; '31,': 0.64; 'charles': 0.67; 'collection': 0.68; 'viewed': 0.82; '2012,': 0.84 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: except clause syntax question From: Charles Yeomans In-Reply-To: Date: Tue, 31 Jan 2012 19:27:38 -0500 Content-Transfer-Encoding: quoted-printable References: <4f272f1f$0$29989$c3e8da3$5496439d@news.astraweb.com> To: Python X-Mailer: Apple Mail (2.1084) 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328056061 news.xs4all.nl 6898 [2001:888:2000:d::a6]:47837 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19667 On Jan 31, 2012, at 7:12 PM, Terry Reedy wrote: > On 1/31/2012 8:57 AM, Charles Yeomans wrote: >=20 >> In any case, though I appreciate your attempt at a post hoc = justification, > > I was hoping for a positive explanation. >=20 > I think the best you are going to get is that Python somewhat = consistently*, for both practical and historical reasons#, uses tuples = when the syntax allows an object or collection of objects. >=20 > * except, isinstance, isubclass, ''%x, perhaps other places. >=20 > In the last case, that creates a problem when one wants to interpolate = a tuple as an object rather than having it viewed as a container of = several objects to be interpolated. That was on >=20 > # Python once treated tuples as different from lists in ways that is = not true now. (Read the 1.5 docs if really interested.) >=20 I'll do that. Thanks. Charles Yeomans