Skip to content

Instantly share code, notes, and snippets.

@williamsjj
Created November 12, 2009 18:53
Show Gist options
  • Select an option

  • Save williamsjj/233168 to your computer and use it in GitHub Desktop.

Select an option

Save williamsjj/233168 to your computer and use it in GitHub Desktop.
def return_bools(class_obj):
bools_array = []
for attr in class_obj.__dict__.iteritems():
if type(attr[1]) == type(bool()):
bools_array.append(attr[1])
return bools_array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment