Commit 3facfcec authored by Stefan Behnel's avatar Stefan Behnel

another tiny bit faster Visitors

parent 7837b470
...@@ -8,7 +8,7 @@ cdef class BasicVisitor: ...@@ -8,7 +8,7 @@ cdef class BasicVisitor:
cdef class TreeVisitor(BasicVisitor): cdef class TreeVisitor(BasicVisitor):
cdef public list access_path cdef public list access_path
cpdef visitchild(self, child, parent, attrname, idx) cdef visitchild(self, child, parent, attrname, idx)
@cython.locals(idx=int) @cython.locals(idx=int)
cdef dict _visitchildren(self, parent, attrs) cdef dict _visitchildren(self, parent, attrs)
cpdef visitchildren(self, parent, attrs=*) cpdef visitchildren(self, parent, attrs=*)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment