Created
September 2, 2011 20:45
-
-
Save etrepum/1189868 to your computer and use it in GitHub Desktop.
twisted unicode hatred
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
>>> buffer(u'fuck you', 0, 10)[:] | |
'f\x00u\x00c\x00k\x00 \x00' | |
>>> from cStringIO import StringIO | |
>>> sio = StringIO(); sio.write(u'fuck you'); sio.getvalue() | |
'fuck you' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment