Commit 860541a2 authored by Kevin Modzelewski's avatar Kevin Modzelewski

drat this is failing

parent 7f2e0e0b
import sys
def f():
# By the time of the f_locals call, x will only be alive because
# of its existence in the vregs array.
x = 100.0 ** 10
for i in xrange(10000):
200.0 * 200.0
print sys._getframe(0).f_locals
# Avoid testing the lifetime of i by keeping it alive here:
print i
f()
# Same test but with ints. Ints are harder to debug since they use a freelist
# and it isn't as obvious what is going on.
def f():
y = 100 * 100
for i in xrange(10000):
200 * 200
print sys._getframe(0).f_locals
# Avoid testing the lifetime of i by keeping it alive here:
print i
trap()
f()
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