Commit 1b2ab013 authored by Stefan Behnel's avatar Stefan Behnel Committed by GitHub

Merge pull request #2779 from MedeaMelana/master

Fix source of non-deterministic cython output for try/finally statements
parents 850e83a7 09badd58
......@@ -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