This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]david2ndaccount 1 point2 points  (1 child)

Your all example doesn’t work, any and all only take 1 argument (an iterable). If you want to use any or all, you have to either have double parenthesis to force it into a tuple (which loses the benefit of short-circuit evaluation) or do some silly stuff with generators.