Please review, if it works, then feel free to reimplement the methods,
as with the current patch is a bit ugly (two calls to
try_substitution()), and then commit! Good weekend.
diff -r 1771db44498b Cython/Compiler/TreeFragment.py
--- a/Cython/Compiler/TreeFragment.py Thu Feb 12 18:22:15 2009 -0200
+++ b/Cython/Compiler/TreeFragment.py Fri Feb 13 17:06:00 2009 -0200
@@ -160,6 +160,7 @@
def visit_NameNode(self, node):
temphandle = self.tempmap.get(node.name)
if temphandle:
+ node = self.try_substitution(node, node.name)
node.name = temphandle
return node
# Replace name with temporary
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev