Author: Raffael Tfirst <[email protected]>
Branch: py3.5
Changeset: r85230:74e75cb5c5eb
Date: 2016-06-19 21:59 +0200
http://bitbucket.org/pypy/pypy/changeset/74e75cb5c5eb/
Log: (insert note for bug with depth is 1)
diff --git a/pypy/interpreter/astcompiler/assemble.py
b/pypy/interpreter/astcompiler/assemble.py
--- a/pypy/interpreter/astcompiler/assemble.py
+++ b/pypy/interpreter/astcompiler/assemble.py
@@ -397,6 +397,7 @@
for block in blocks:
depth = self._do_stack_depth_walk(block)
if block.auto_inserted_return and depth != 0:
+ #depth is 1, import pdb;pdb.pm()
os.write(2, "StackDepthComputationError in %s at %s:%s\n" % (
self.compile_info.filename, self.name, self.first_lineno))
raise StackDepthComputationError # fatal error
diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -1353,8 +1353,9 @@
w_sum = self.space.newset()
num_maps = itemcount & 0xff
function_location = (itemcount >> 8) & 0xff
- for i in range(itemcount, 0, -1):
+ for i in range(num_maps, 0, -1):
arg = self.space.peek(i)
+ # intersection = _dictviews_and(w_sum, arg) #check after bugs are
done
self.space.call_method(w_sum, 'update', self.space.peek(i))
while itemcount != 0:
self.popvalue()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit