From cd78a0e8a7b66cedf0e2165d831937229b82dc41 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 11 Mar 2013 19:25:29 +0100 Subject: [PATCH] safety fix for analysis in assigned builtin methods optimisation --HG-- extra : rebase_source : 8a7842eea9d10b4e8054ed3782e0efdc2b2ce02c --- Cython/Compiler/Visitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4