Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2015 13:10
Show Gist options
  • Save anonymous/5cf2b3f0b67661f19a09 to your computer and use it in GitHub Desktop.
Save anonymous/5cf2b3f0b67661f19a09 to your computer and use it in GitHub Desktop.
What is happeining!
>>> type([1 for i in [1]][0]) is type([1.0 for a in [1]][0])
False
>>> type([1 for i in [1]][0]) is type([1.0 for i in [1]][0]) is int
True
>>> type([1.0 for i in [1]][0]) is type([1 for i in [1]][0]) is float
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment