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


Groups > comp.lang.python > #3646

Re: List comprehension vs filter()

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'wed,': 0.04; 'sure.': 0.05; 'subject:()': 0.09; 'pm,': 0.11; 'essentially': 0.12; 'wrote:': 0.14; 'rebert': 0.16; 'subject:List': 0.20; 'work,': 0.20; 'variable': 0.21; 'header:In-Reply-To:1': 0.22; "aren't": 0.22; 'appears': 0.24; "what's": 0.24; "i'm": 0.26; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; "doesn't": 0.28; 'least': 0.30; 'named': 0.30; 'list': 0.30; 'that...': 0.31; 'however,': 0.31; 'to:addr:python-list': 0.32; 'things': 0.33; 'on,': 0.33; 'quite': 0.36; 'two': 0.37; 'some': 0.37; 'received:209.85': 0.37; '20,': 0.38; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'might': 0.40; '2011': 0.62; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=qIa3a6kbiJOp9gRdb6nBJuv9jN2Zgbpx8kT+nM4Za8U=; b=YWIV+shqNi3EaPf5MZ3tL8dJtSEmNreqOFVJjDryXlMVnALIwZTBs2YW5w/p3wTRPE sAFMZQLUyWzj8gy2UUbsrkqw0h/ByBc1uI/oo+WNNoTQGTG9ducIq8UAdIab2t6j/0ay 6NQ5HbyuEQtYQbnH4tgU2DvzUXH9jD842zRp8=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=sxxoitcTF95V7AUyRpyohmLhLSMCFNnzLRqD6JpOb3KBDGm0zPxISrOYWoa9969pAT iZINjNmcZzTlZlS4taEPyRXWYXTiG3fFcFJwVsVVxZ3H5sf25evx8oTrCEd6HSMMe1LL XPGZwj/DGzkpdRfK8z2qQZkuv0yO19Z38N54Q=
MIME-Version 1.0
In-Reply-To <BANLkTimmfwZ5dB+Vt8S2-rYAwS4axvn8og@mail.gmail.com>
References <BANLkTin4KMcoWzfH64Eu=+sD9=M3TaAu2A@mail.gmail.com> <BANLkTinVhX1jDd5brOh1D1m4zU5R8pEoSQ@mail.gmail.com> <BANLkTimvUPXRKOvGNqDzNCJp0UuWT1AkVg@mail.gmail.com> <BANLkTimmfwZ5dB+Vt8S2-rYAwS4axvn8og@mail.gmail.com>
Date Wed, 20 Apr 2011 13:59:42 +1000
Subject Re: List comprehension vs filter()
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.611.1303271986.9059.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 82.94.164.166
X-Trace 1303271986 news.xs4all.nl 32470 [::ffff:82.94.164.166]:53934
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3646

Show key headers only | View raw


On Wed, Apr 20, 2011 at 1:45 PM, Chris Rebert <clp2@rebertia.com> wrote:
> Built-ins aren't quite the same as globals, but essentially yes:

Sure. That might explain some of the weirdness, but it doesn't explain
why things were still weird with the variable named posttype. However,
since the list comp appears to work, I'm going with that... would love
to know what's going on, but at least things aren't utterly b0rked
like they were two hours ago!

Chris Angelico

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


Thread

Re: List comprehension vs filter() Chris Angelico <rosuav@gmail.com> - 2011-04-20 13:59 +1000
  Re: List comprehension vs filter() Tim Roberts <timr@probo.com> - 2011-04-20 00:16 -0700
    Re: List comprehension vs filter() Chris Angelico <rosuav@gmail.com> - 2011-04-20 18:36 +1000
      Re: List comprehension vs filter() Mel <mwilson@the-wire.com> - 2011-04-20 10:12 -0400

csiph-web