Commit ad8d03c3 authored by Kevin Modzelewski's avatar Kevin Modzelewski Committed by Kevin Modzelewski

Have tuple remember what it boxed to

parent 711a3224
This diff is collapsed.
......@@ -41,3 +41,15 @@ def f4(a, b):
assert id(a) == id(b)
for i in xrange(11000):
f4(1000, 1000)
# This applies to other data types as well. (maybe should call this test file something else)
def ident(x):
return x
def f5():
t = (1, 2, 3)
print ident(t) is t
for i in xrange(10):
f5()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment