Skip to content

Instantly share code, notes, and snippets.

@shihpeng
Created October 7, 2014 09:38
Show Gist options
  • Save shihpeng/74274172b47649e528fc to your computer and use it in GitHub Desktop.
Save shihpeng/74274172b47649e528fc to your computer and use it in GitHub Desktop.
str() and repr() examples
# 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