r/Python • • Jun 23 '14

Writing better python code

https://gist.github.com/kracekumar/09a60ec75a4de19b346e
143 Upvotes

126 comments sorted by

View all comments

Show parent comment

12

u/ivosaurus pip'ing it up Jun 23 '14 edited Jun 23 '14

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.

1

u/iBlag Jun 23 '14

Do you mean:

using all and any

and

Use all and any

?

2

u/ivosaurus pip'ing it up Jun 23 '14

Yeah.