Skip to content

Instantly share code, notes, and snippets.

@t-8ch
Created May 10, 2014 13:00
Show Gist options
  • Save t-8ch/c9ec904eaf45e675341f to your computer and use it in GitHub Desktop.
Save t-8ch/c9ec904eaf45e675341f to your computer and use it in GitHub Desktop.
surrogates in python
# Works with CPython, PyPy 2 (Py version 2)
# Blows up with PyPy 2 (Py version 3), Jython (Py version 2)
u"\uD800"
# Works with CPython2, PyPy 2 (Py version 2)
# Blows up with CPython3, PyPy 2 (Py version 3), Jython (Py version 2)
print(u"\uD800")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment