projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d05c5e3
)
literals are always 'nonlocally immutable'
author
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 28 Sep 2012 17:38:50 +0000
(19:38 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 28 Sep 2012 17:38:50 +0000
(19:38 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
6face90
..
1ea055e
100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-389,7
+389,7
@@
class ExprNode(Node):
def nonlocally_immutable(self):
# Returns whether this variable is a safe reference, i.e.
# can't be modified as part of globals or closures.
- return self.is_temp or self.type.is_array or self.type.is_cfunction
+ return self.is_
literal or self.is_
temp or self.type.is_array or self.type.is_cfunction
# --------------- Type Analysis ------------------