Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76765:b8efc7b61f61
Date: 2015-04-09 16:32 +0200
http://bitbucket.org/pypy/pypy/changeset/b8efc7b61f61/
Log: Print more location info to stderr
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
@@ -1,5 +1,6 @@
"""Python control flow graph generation and bytecode assembly."""
+import os
from rpython.rlib import rfloat
from rpython.rlib.objectmodel import we_are_translated
@@ -392,6 +393,8 @@
for block in blocks:
depth = self._do_stack_depth_walk(block)
if block.auto_inserted_return and depth != 0:
+ os.write(2, "StackDepthComputationError in %s at %s:%s\n" % (
+ self.compile_info.filename, self.name, self.first_lineno))
raise StackDepthComputationError # fatal error
return self._max_depth
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit