Skip to content

Instantly share code, notes, and snippets.

@stemar
Last active October 1, 2015 12:48
Show Gist options
  • Save stemar/1995569 to your computer and use it in GitHub Desktop.
Save stemar/1995569 to your computer and use it in GitHub Desktop.
is_blank() method in Python
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