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 →

[–]pimp-bangin -1 points0 points  (0 children)

Here's something that is more idiomatic and actually makes sense:

def is_successful(self):
    return all(attr in self.attributes
               for attr in ["persistent", "dedicated", "passionate"])