From: Stefan Behnel Date: Mon, 11 Mar 2013 18:25:29 +0000 (+0100) Subject: safety fix for analysis in assigned builtin methods optimisation X-Git-Tag: 0.19b1~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd78a0e8a7b66cedf0e2165d831937229b82dc41;p=platform%2Fupstream%2Fpython-cython.git safety fix for analysis in assigned builtin methods optimisation --HG-- extra : rebase_source : 8a7842eea9d10b4e8054ed3782e0efdc2b2ce02c --- diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 35f8206..9f2c961 100644 --- 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