Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.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.076 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.03; 'subject:both': 0.07; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'sep': 0.31; 'received:google.com': 0.35; 'subject:one': 0.36; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KmCDMzbFLvS1mPkI8VxD+6hyTKPcf1TuYuJ9KkA1qbk=; b=q1oQZG4Pn9Phpi6XnmKHjd5MO5anPV99n+kl3n4fjNK0rrejnZgXnDMA1FE5WMt0k5 463wbR+0iX2eknUVtGUqusGrw/hmwhm2Dw6Av28Z10SgG8fgmbWUvW/qGhDsaHfeIYY/ UoCBf4dRRs+jAZbIDZgoveAD5IdDzeX8wLExd7wZwsPu36Mcqe4PDyKZ/Gbbfl03MxCg +SB77p5dEk/Dgz6Te+MRimm43psOTITvu+072IgnwQA55D/RJUIcr4W3qCuoAtHy8T9O 4ganncb6PL+vNbMRaqw+bXQ4qTRgTjoOHCaB5Q3qh8kswGbLIkeJnV/VnEzugdmnxRO/ ChdA== MIME-Version: 1.0 X-Received: by 10.58.77.65 with SMTP id q1mr18180885vew.8.1379487607335; Wed, 18 Sep 2013 00:00:07 -0700 (PDT) In-Reply-To: References: <52390bb0$0$29869$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 18 Sep 2013 17:00:07 +1000 Subject: Re: Having both if() and for() statements in one liner 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: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379487609 news.xs4all.nl 15905 [2001:888:2000:d::a6]:34394 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54359 On Wed, Sep 18, 2013 at 3:55 PM, Joshua Landau wrote: > range(person == "simon" and 5) +1 for the BOFH reference. ChrisA