and another tiny speed-up
authorStefan Behnel <scoder@users.berlios.de>
Sun, 21 Dec 2008 10:05:50 +0000 (11:05 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 21 Dec 2008 10:05:50 +0000 (11:05 +0100)
Cython/Compiler/Visitor.py

index 4dae2f70ff6ff5ab9530da690dbc2f309605113b..b4ef5fd2ef1086f44df28c749172ede5b0c032ad 100644 (file)
@@ -1,6 +1,7 @@
 #
 #   Tree visitor and transform framework
 #
+import cython
 import inspect
 import Nodes
 import ExprNodes
@@ -147,6 +148,7 @@ class VisitorTransform(TreeVisitor):
         self._super_visitchildren = super(VisitorTransform, self).visitchildren
 
     def visitchildren(self, parent, attrs=None):
+        result = cython.declare(dict)
         result = self._super_visitchildren(parent, attrs)
         for attr, newnode in result.iteritems():
             if not isinstance(newnode, list):