projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8821361
)
and another tiny speed-up
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 21 Dec 2008 10:05:50 +0000
(11:05 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 21 Dec 2008 10:05:50 +0000
(11:05 +0100)
Cython/Compiler/Visitor.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Visitor.py
b/Cython/Compiler/Visitor.py
index 4dae2f70ff6ff5ab9530da690dbc2f309605113b..b4ef5fd2ef1086f44df28c749172ede5b0c032ad 100644
(file)
--- 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):