From 7830d4fda674dafff8b45031efa0512b7fee9834 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 21 Dec 2008 11:05:50 +0100 Subject: [PATCH] and another tiny speed-up --- Cython/Compiler/Visitor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 4dae2f70..b4ef5fd2 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -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): -- 2.26.2