Created
January 20, 2012 20:26
-
-
Save fletom/1649392 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_hidden(self): | |
if self.state == 'HIDDEN': | |
return True | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Love it. I also, depressingly, see Python developers doing this all the time. My favourite variant: