Path: csiph.com!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!newsfeed3.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.069 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'arguments': 0.07; 'subject:while': 0.09; '(set': 0.16; 'char"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pairs': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'bit': 0.21; 'seems': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'implicitly': 0.29; 'function': 0.30; 'johnson': 0.32; 'could': 0.32; 'like:': 0.33; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'clear': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; '12,': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'end': 0.40; 'you.': 0.61; 'real': 0.61; 'more': 0.63; '2013': 0.84; 'vehemently': 0.84; 'rick': 0.91; 'hands': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=n5mxI2ith4peIyZA6TsPxRXZbhPfayxCB05mdh4HZaI=; b=m4ouZusAm3XZMIgp9oVeURVn7qseg0YVn0FM0eg2MfhM1YD1p/04Q17cCyoajWk7xt PkK8mwy83dOAuqaMnnH8NX1BPBFgy15uwtXK/hwvGFl66pgadacUt1h6tTAmut08yiMF 4QgWxjC9jkYgaS4rKS750w40pdKW4iRDqfpVTTCfma+I3v4BHx0WWJECg0tnh/Bu2FLl aLKuP/J0ifPM6mweohHzBg9LJcBDo4OIJruYegTiRhRdZqGFB23/jDa7atiReU+OrxaO 8jrkR+fyZjSzD5H3IjDWVpSM/+5qoCH4UzmGkJFHlvI1Sur0WLTg5R2KBNITmC3i3jSD Cgag== MIME-Version: 1.0 X-Received: by 10.52.29.109 with SMTP id j13mr16191269vdh.111.1360589723359; Mon, 11 Feb 2013 05:35:23 -0800 (PST) In-Reply-To: <43b37855-1d4d-4b16-ac83-115754bc9346@googlegroups.com> References: <86872ad2-fda0-403b-9f18-d1cb18e41860@t32g2000yqd.googlegroups.com> <50039290$0$29978$c3e8da3$5496439d@news.astraweb.com> <9309333c-13a0-464c-bd94-9c682363b8c9@googlegroups.com> <511516db$0$29969$c3e8da3$5496439d@news.astraweb.com> <62c3e7bb-d023-43b4-b759-f424707fd346@googlegroups.com> <75c82449-773e-4077-a6c9-e9cef08f845f@googlegroups.com> <13e5e306-d253-418e-a1b2-ac5bde03f07d@googlegroups.com> <5117868b$0$29998$c3e8da3$5496439d@news.astraweb.com> <375e9978-54a2-421a-a1fa-7f39cafc4f31@googlegroups.com> <43b37855-1d4d-4b16-ac83-115754bc9346@googlegroups.com> Date: Tue, 12 Feb 2013 00:35:23 +1100 Subject: Re: Implicit conversion to boolean in if and while statements From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360589726 news.xs4all.nl 6928 [2001:888:2000:d::a6]:49746 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38681 On Tue, Feb 12, 2013 at 12:13 AM, Rick Johnson wrote: > I am vehemently against using more than one "opening seq char" and one "closing seq char". ... we could use start and end tags like: > > set{1,2,3}set > > where "set{" and "}set" are delimiters. Interesting. So what you're actually against is the symbols. Okay. I have a bit of a Scheme (rubs hands together with glee) for you. We can thtandardithe on jutht one thymbol pair and uthe wordth for the retht. And to make it clear that thith ith no function call, we'll put the word *inthide* the parenthetheth. (set 1 2 3) (dict 1 2 3 4) ; implicitly pairs up the arguments (tuple 1 2) (list 1 2 3 4) ; This seems like a real good idea. ChrisA