Code:
def instance(i):
o = object()
o.id = i
return o
def f(o):
x = [ o.id for i in range(1) ]
print(x)
o = instance(999)
f( instance(1) )
Result in:
[ 999 ]
Instead of:
[ 1 ]
This definition does not change the output:
def f(o):
o = instance(2)
x = [ o.id for i in range(1) ]
print(x)
Original issue reported on code.google.com by pedro.ro...@gmail.com on 5 Jan 2013 at 3:53
Original issue reported on code.google.com by
pedro.ro...@gmail.com
on 5 Jan 2013 at 3:53