Created
August 1, 2013 04:54
-
-
Save gingerjoos/6128494 to your computer and use it in GitHub Desktop.
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
$ 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