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 850e83a7
......@@ -900,9 +900,9 @@ class FunctionState(object):
try-except and try-finally blocks to clean up temps in the
error case.
"""
return [(cname, type)
for (type, manage_ref), freelist in self.temps_free.items() if manage_ref
for cname in freelist[0]]
return sorted([(cname, type)
for (type, manage_ref), freelist in self.temps_free.items() if manage_ref
for cname in freelist[0]])
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