Skip to content

Instantly share code, notes, and snippets.

@gingerjoos
Created August 1, 2013 04:54
Show Gist options
  • Save gingerjoos/6128494 to your computer and use it in GitHub Desktop.
Save gingerjoos/6128494 to your computer and use it in GitHub Desktop.
$ python
Python 2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> bar = str("abcd")
>>> bar
'abcd'
>>> foo = unicode("abcd")
>>> foo
u'abcd'
>>> foo is bar
False
>>> foo == bar
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment