Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54312

Re: Having both if() and for() statements in one liner

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.082
X-Spam-Evidence '*H*': 0.84; '*S*': 0.01; 'subject:both': 0.07; 'mining': 0.09; 'newline': 0.09; 'cc:addr:python-list': 0.11; '--\xc2\xa0': 0.16; 'newlines': 0.16; 'roy': 0.16; 'silly': 0.16; 'wrote:': 0.18; 'email addr:gmail.com&gt;': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'cc:2**0': 0.24; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'url:wiki': 0.31; 'sep': 0.31; 'url:wikipedia': 0.31; 'url:python': 0.33; 'received:google.com': 0.35; 'subject:one': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'pm,': 0.38; 'url:mail': 0.40; 'even': 0.60; 'hope': 0.61; 'free': 0.61; 'to:addr:gmail.com': 0.65; 'air': 0.66; 'smith': 0.68; 'export': 0.74; 'discovered': 0.83; 'demand': 0.91; 'joel': 0.91; '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 :cc:content-type; bh=9ZB5ANxz+ax5ZvSaDSMS43khTyQBJuvkMLP9IVP+6r8=; b=Z4jq8wjip0b0+8ln6oRTcH24A3ve8vLBD34RyhTTe969CIww+d1cqzpKb64szujJmq HRyeDgg2vQprX7CFELyfdbUUNbELyEDmTT7FWIEf7edHzl5juYYvY/rQHD55Ao3q9Sja jHiVZInqgRNDs6AVasVMp0T+cHxGPIFIao76LXPx2ZY6eNSVomYPFptpEOQqUrYJc7OF raqq0anquMisly2gPCfB+XCAefb4KIeV42L/IQLUjzrw8k8y3jlkA6xgfMP6U41Aq51u 3nn0M30Ir0GJuOMYG6u7R0Hstp0n26+emAXdoA332i4g8lIIENtLpWd/OVTIpDvQGYzM aqaQ==
MIME-Version 1.0
X-Received by 10.58.7.166 with SMTP id k6mr260815vea.54.1379430954227; Tue, 17 Sep 2013 08:15:54 -0700 (PDT)
In-Reply-To <CAPTjJmqNQUhHFhCm71bwbZ=uOeDkdSw8tCpuoCiiRM05LUsVdA@mail.gmail.com>
References <l19gdf$psh$1@dont-email.me> <roy-7F8454.09003417092013@news.panix.com> <CAPTjJmqNQUhHFhCm71bwbZ=uOeDkdSw8tCpuoCiiRM05LUsVdA@mail.gmail.com>
Date Tue, 17 Sep 2013 11:15:54 -0400
Subject Re: Having both if() and for() statements in one liner
From Joel Goldstick <joel.goldstick@gmail.com>
To Chris Angelico <rosuav@gmail.com>
Content-Type multipart/alternative; boundary=089e0117668d04f8d504e695ccca
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.79.1379430956.18130.python-list@python.org> (permalink)
Lines 73
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1379430956 news.xs4all.nl 16001 [2001:888:2000:d::a6]:58732
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54312

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Sep 17, 2013 at 11:04 AM, Chris Angelico <rosuav@gmail.com> wrote:

> On Tue, Sep 17, 2013 at 11:00 PM, Roy Smith <roy@panix.com> wrote:
> > They just discovered a huge newline vein in Montana and they're mining
> > the things like crazy.  There's no shortage of them so feel free to use
> > as many as you like.  They even get recycled.
>
> Can they keep up with the considerable demand even from Whitespace?
>
> http://en.wikipedia.org/wiki/Whitespace_(programming_language)
>
> I hope the Montanan newlines aren't on silly US export restrictions.
> That would be so annoying.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>


You can get them all over the Mediterranean as well!  I think they are like
air --

-- 
Joel Goldstick
http://joelgoldstick.com

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Having both if() and for() statements in one liner Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 15:02 +0300
  Re: Having both if() and for() statements in one liner Robert Kern <robert.kern@gmail.com> - 2013-09-17 13:52 +0100
  Re: Having both if() and for() statements in one liner Roy Smith <roy@panix.com> - 2013-09-17 09:00 -0400
    Re: Having both if() and for() statements in one liner Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 16:21 +0300
      Re: Having both if() and for() statements in one liner Heiko Wundram <modelnine@modelnine.org> - 2013-09-17 15:46 +0200
      Re: Having both if() and for() statements in one liner Tim Chase <python.list@tim.thechases.com> - 2013-09-17 09:17 -0500
      Re: Having both if() and for() statements in one liner Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-17 10:32 -0400
      Re: Having both if() and for() statements in one liner Dave Angel <davea@davea.name> - 2013-09-17 18:54 +0000
        Re: Having both if() and for() statements in one liner Steven D'Aprano <steve@pearwood.info> - 2013-09-18 02:10 +0000
          Re: Having both if() and for() statements in one liner Joshua Landau <joshua@landau.ws> - 2013-09-18 06:55 +0100
          Re: Having both if() and for() statements in one liner Chris Angelico <rosuav@gmail.com> - 2013-09-18 17:00 +1000
    Re: Having both if() and for() statements in one liner Chris Angelico <rosuav@gmail.com> - 2013-09-18 01:04 +1000
    Re: Having both if() and for() statements in one liner Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-17 11:15 -0400

csiph-web