Last active
October 1, 2015 12:48
-
-
Save stemar/1995569 to your computer and use it in GitHub Desktop.
is_blank() method in Python
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_blank(value): | |
return False if value is not False and value in [0, 0.0] else not value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment