Author: Armin Rigo <[email protected]>
Branch:
Changeset: r90257:bd3fb63c58c8
Date: 2017-02-21 13:19 +0100
http://bitbucket.org/pypy/pypy/changeset/bd3fb63c58c8/
Log: Seeing again the crash "ExecutionContext instances should not be
seen during translation". At least in this case I could track it to
this. Unsure why it was set in the first place, but fix it the easy
way.
diff --git a/pypy/interpreter/miscutils.py b/pypy/interpreter/miscutils.py
--- a/pypy/interpreter/miscutils.py
+++ b/pypy/interpreter/miscutils.py
@@ -33,6 +33,11 @@
def getallvalues(self):
return {0: self._value}
+ def _cleanup_(self):
+ # should still be unfilled at this point during translation.
+ # but in some corner cases it is not... unsure why
+ self._value = None
+
def make_weak_value_dictionary(space, keytype, valuetype):
"NOT_RPYTHON"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit