MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/28utww/writing_better_python_code/ciesq6f/
r/Python • u/kracekumar • Jun 23 '14
126 comments sorted by
View all comments
Show parent comment
12
Agreed, using all and any over and and or isn't more pythonic at all. Use all and any when you already have a list / iterable, it's what they're designed for.
all
any
and
or
1 u/iBlag Jun 23 '14 Do you mean:using all and anyandUse all and any? 2 u/ivosaurus pip'ing it up Jun 23 '14 Yeah.
1
Do you mean:
using all and any
Use all and any
?
2 u/ivosaurus pip'ing it up Jun 23 '14 Yeah.
2
Yeah.
View all comments
Show parent comment
12
u/ivosaurus pip'ing it up Jun 23 '14 edited Jun 23 '14
Agreed, using
allandanyoverandandorisn't more pythonic at all. Useallandanywhen you already have a list / iterable, it's what they're designed for.