Created
November 12, 2009 18:53
-
-
Save williamsjj/233168 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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