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:
d157387
)
safety fix for analysis in assigned builtin methods optimisation
author
Stefan Behnel
<stefan_ml@behnel.de>
Mon, 11 Mar 2013 18:25:29 +0000
(19:25 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Mon, 11 Mar 2013 18:25:29 +0000
(19:25 +0100)
--HG--
extra : rebase_source :
8a7842eea9d10b4e8054ed3782e0efdc2b2ce02c
Cython/Compiler/Visitor.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Visitor.py
b/Cython/Compiler/Visitor.py
index
35f8206
..
9f2c961
100644
(file)
--- a/
Cython/Compiler/Visitor.py
+++ b/
Cython/Compiler/Visitor.py
@@
-551,7
+551,7
@@
class MethodDispatcherTransform(EnvTransform):
if not value.entry or len(value.entry.cf_assignments) > 1:
# the variable might have been reassigned => play safe
return node
- elif value.is_attribute:
+ elif value.is_attribute
and value.obj.is_name
:
if not value.obj.entry or len(value.obj.entry.cf_assignments) > 1:
# the underlying variable might have been reassigned => play safe
return node