Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
860541a2
Commit
860541a2
authored
Feb 29, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drat this is failing
parent
7f2e0e0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
test/tests/vregs_only_introspection.py
test/tests/vregs_only_introspection.py
+25
-0
No files found.
test/tests/vregs_only_introspection.py
0 → 100644
View file @
860541a2
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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment