Commit 685b47d3 authored by Martijn van Steenbergen's avatar Martijn van Steenbergen Committed by Stefan Behnel

Fix source of non-deterministic cython output for try/finally statements.

The __PYX_XDEC_MEMVIEW statements generated for try/finally statements
varied per build if there were multiple types of variables to be cleaned
up.
parent 90eb720b
...@@ -906,9 +906,9 @@ class FunctionState(object): ...@@ -906,9 +906,9 @@ class FunctionState(object):
try-except and try-finally blocks to clean up temps in the try-except and try-finally blocks to clean up temps in the
error case. error case.
""" """
return [(cname, type) return sorted([(cname, type)
for (type, manage_ref), freelist in self.temps_free.items() if manage_ref for (type, manage_ref), freelist in self.temps_free.items() if manage_ref
for cname in freelist[0]] for cname in freelist[0]])
def start_collecting_temps(self): def start_collecting_temps(self):
""" """
......
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