Created
August 20, 2013 00:37
-
-
Save waptang/6275821 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
Python 2.7.2 (default, Oct 11 2012, 20:14:37) | |
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> class Thing(object): | |
... pass | |
... | |
>>> x = Thing() | |
>>> setattr(x, ' ', True) | |
>>> setattr(x, '+', True) | |
>>> setattr(x, '', True) | |
>>> vars(x) | |
{'': True, ' ': True, '+': True} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment