Skip to content

Instantly share code, notes, and snippets.

@schmiddy
Created April 25, 2016 17:29
Show Gist options
  • Save schmiddy/9a28248f4c1c4076dd11759e0d96f893 to your computer and use it in GitHub Desktop.
Save schmiddy/9a28248f4c1c4076dd11759e0d96f893 to your computer and use it in GitHub Desktop.
from __future__ import unicode_literals
UNADORNED = 'abc'
UNICODE_STR = u'abc'
BYTE_STRING = b'abc'
print "Type of UNADORNED: %s" % type(UNADORNED)
print "Type of UNICODE_STR: %s" % type(UNICODE_STR)
print "Type of BYTE_STRING: %s" % type(BYTE_STRING)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment