HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by l0nwlf | Hacker News Reader
Parent
Full thread
l0nwlf
·
I would go for more pythonic "not i % 2".
View on HN
fjh
·
I would argue that that is not very pythonic, since it breaks the "explicit is better than implicit" guideline.
koenigdavidmj
·
Most Python people are okay with relying on the behaviour of what is truthful and what is not. They would often prefer to see
if foo: do_stuff()
over
if len(foo) > 0: do_stuff()
Reply on news.ycombinator.com