Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52003
| 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 | 2013-08-06 09:25 +0100 |
| Subject | Re: [Python-ideas] Allow filter(items) |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.230.1375777518.1251.python-list@python.org> (permalink) |
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