These are chat archives for dropbox/pyston

Apr 2016
Marius Wachtler
Apr 29 2016 08:59
mmh I think it's quite confusing that:
print {1, 1L}, set([1, 1L])
set([1L]) set([1])
dict is like I expected:
print {1 : "int", 1L : "long"}, dict([(1, "int"), (1L, "long")])
{1: 'long'} {1: 'long'}
this means we can't call set.add() for {1, 1L}...
oh now I figured out what's going on... because cpython uses a stack based bytecode the args to {1, 1L} will get added in reverse.