Skip to content

Instantly share code, notes, and snippets.

@krotkiewicz
Last active December 14, 2015 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krotkiewicz/5106255 to your computer and use it in GitHub Desktop.
Save krotkiewicz/5106255 to your computer and use it in GitHub Desktop.
class upper_unicode(unicode):
def __new__(cls, param, *args, **kwargs):
param = param.upper()
return unicode.__new__(cls, param, *args, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment