Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52003
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news1.as3257.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.038 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.01; 'subject:: [': 0.04; 'subject:Python': 0.06; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'readable': 0.16; 'subject:ideas': 0.16; 'version?': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'aug': 0.22; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'maybe': 0.34; 'problem': 0.35; 'received:google.com': 0.35; '8bit%:86': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'is.': 0.60; 'more': 0.64; 'obvious': 0.74; "'if": 0.84; '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:content-transfer-encoding; bh=tong8Uoxd/Kg8nNhUv315HUAkcn8M95OgsGLAilcR4I=; b=Cwnf65GPIQzTy5oH4RZFDlGGSWkykByP9XbJUtXDelR2YpJqMvnmqSbXEFwO1J003a SHZfu2uH1ghKUqtwEy08jcaOnT6a3EcOp5/Uom4nq+h86jws3zn1d7c3wfSyeLB4T4eF STa1T5xl8eoaozSfmhxtZ03ji++EZhgmKQ85sHxebTg6URgdiEtc4Y77ooDlegVCYVW6 7hSejFMWU77vpATDVWEC8DtwSHJnpgTG0TLG9KPrk5d7UhFANPuGoT72BPqssQ+B6qp5 kAquzok6RDK4ULlFJiSStAaJEjtiYbeytYCzWIeidE+y4QH/ipYfutOr6vuoJLEEhE5P rqkg== |
| MIME-Version | 1.0 |
| X-Received | by 10.220.182.193 with SMTP id cd1mr56542vcb.32.1375777515809; Tue, 06 Aug 2013 01:25:15 -0700 (PDT) |
| In-Reply-To | <ktqbot$7i2$1@ger.gmane.org> |
| References | <ktnl6u$9d7$1@ger.gmane.org> <CAPTjJmob+BOuYOj7o7Y-Uvu6zWLt=6w9=9EvHW3LM8GCsi8i6Q@mail.gmail.com> <ktq8ho$5ta$1@ger.gmane.org> <CAPTjJmr+276-kV7u_DWpCSF2+g2k73NWagmGacV6q5MhUfWCmA@mail.gmail.com> <ktqbot$7i2$1@ger.gmane.org> |
| Date | Tue, 6 Aug 2013 09:25:15 +0100 |
| Subject | Re: [Python-ideas] Allow filter(items) |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| 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 | <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.230.1375777518.1251.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1375777518 news.xs4all.nl 15873 [2001:888:2000:d::a6]:55431 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52003 |
Show key headers only | View raw
On Tue, Aug 6, 2013 at 9:23 AM, Serhiy Storchaka <storchaka@gmail.com> wrote: > 06.08.13 10:34, Chris Angelico написав(ла): > >> Okay. Sounds like there's already an answer to those who want more >> readability: Just use filter(bool,...). Maybe I'm just not seeing the >> obvious problem with this version? > > > Are `if bool(...)` or `if bool(...) == True` more readable than `if ...`? They're more readable than 'if None(...)' is. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [Python-ideas] Allow filter(items) Chris Angelico <rosuav@gmail.com> - 2013-08-06 09:25 +0100
csiph-web