diff options
author | Martijn van Steenbergen <lava@google.com> | 2019-01-02 14:16:40 +0000 |
---|---|---|
committer | Martijn van Steenbergen <lava@google.com> | 2019-01-02 14:18:01 +0000 |
commit | 09badd586097e7fe2c01cfc74c214ece966c8132 (patch) | |
tree | 6631f2154710e20b226147901b55abed3daf585a | |
parent | 850e83a7d4d153b2f70a1569d8fb7819a55cad78 (diff) | |
download | cython-09badd586097e7fe2c01cfc74c214ece966c8132.tar.gz |
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.
-rw-r--r-- | Cython/Compiler/Code.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 098988a3c..5d16168ba 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -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): """ |