Skip to content

Instantly share code, notes, and snippets.

@gzxultra
Created January 9, 2017 09:36
Show Gist options
  • Save gzxultra/50302825e0350c15129b00502e66701b to your computer and use it in GitHub Desktop.
Save gzxultra/50302825e0350c15129b00502e66701b to your computer and use it in GitHub Desktop.
def zhprint(obj):
import re
print re.sub(r"\\u([a-f0-9]{4})", lambda mg: unichr(int(mg.group(1), 16)), obj.__repr__())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment