diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-17 10:31:05 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-17 10:31:05 +0200 |
commit | c8e32bb66a51144e0ae9522a1838cb5e22cc8d1d (patch) | |
tree | 784ba47ba5f122e39e5ce5126643239f072efd6c | |
parent | 765dd499ed9d16697b12b8c3eaec6d753223335b (diff) | |
download | cython-c8e32bb66a51144e0ae9522a1838cb5e22cc8d1d.tar.gz |
Add comment and make sure the type's (empty) list of index temps cannot be changed by accident.
-rw-r--r-- | Cython/Compiler/ExprNodes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 5c1faa28b..1c74d082d 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -4237,7 +4237,8 @@ class BufferIndexNode(_IndexingBaseNode): # Whether we're assigning to a buffer (in that case it needs to be writable) writable_needed = False - index_temps = [] + # Any indexing temp variables that we need to clean up. + index_temps = () def analyse_target_types(self, env): self.analyse_types(env, getting=False) |