Created
October 7, 2014 09:38
-
-
Save shihpeng/74274172b47649e528fc to your computer and use it in GitHub Desktop.
str() and repr() examples
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
# flask/config.py | |
def __repr__(self): | |
return '<%s %s>' % (self.__class__.__name__, dict.__repr__(self)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment