Skip to content

Instantly share code, notes, and snippets.

@solarce
Created June 12, 2009 14:57
Show Gist options
  • Save solarce/128681 to your computer and use it in GitHub Desktop.
Save solarce/128681 to your computer and use it in GitHub Desktop.
>>> foo = 'blah'
>>> type(foo)
<type 'str'>
>>> if type(foo) == 'str':
... print foo
...
>>> if type(foo) == str:
... print foo
...
blah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment