def _walk(self, direction):
'''Yield all the elements in the specified direction.'''
yield self
res = direction(self)
while res.int():
res = res.d
res = reduce(operator.__getitem__, self._path_, res.l)
yield res
res = direction(res)
return
# FIXME: make sure that these return each and every header
评论列表
文章目录