Commit 30867450 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

new temps bug on indexing deletion

parent fd14ceea
......@@ -1925,6 +1925,7 @@ class IndexNode(ExprNode):
self.index_unsigned_parameter(),
code.error_goto(self.pos)))
self.generate_subexpr_disposal_code(code)
self.free_subexpr_temps(code)
def buffer_lookup_code(self, code):
# Assign indices to temps
......
"""
>>> a = A()
>>> a.f()
[2, 1]
>>> a.g()
(False, True)
"""
class A:
def f(self):
self.refs = [3,2,1]
del self.refs[0]
return self.refs
def g(self):
self.a = 3
del self.a
return (hasattr(self, "a"), hasattr(self, "g"))
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