Skip to content

Instantly share code, notes, and snippets.

View Ignas's full-sized avatar

Ignas Mikalajūnas Ignas

View GitHub Profile
@Ignas
Ignas / gist:ad5ca55d6e7e3fb92e11
Last active December 12, 2015 13:20 — forked from anonymous/gist:5cf2b3f0b67661f19a09
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
>>> [1 for i in [1]][0] is [1.0 for i in [1]][0]