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: 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: References: Date: Tue, 6 Aug 2013 09:25:15 +0100 Subject: Re: [Python-ideas] Allow filter(items) From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Tue, Aug 6, 2013 at 9:23 AM, Serhiy Storchaka wrot= e: > 06.08.13 10:34, Chris Angelico =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2= (=D0=BB=D0=B0): > >> 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(...) =3D=3D True` more readable than `if .= ..`? They're more readable than 'if None(...)' is. ChrisA