original traverse documentation is a shortened version of descendants
documentation. Edited documentation comments to clarify the following:
traverse and reverse_traverse return an iterator of NodeEdge
objects. NodeEdge objects mark start (similar to <div>) and end
(similar to </div>) of each node.
descendants returns an iterator of Node objects. This is probably
more useful if you want to play with the Node contents.
added a short "Similar Functions" section to the inline documentation
to point users in the right direction.
original traverse documentation is a shortened version of descendants documentation. Edited documentation comments to clarify the following:
traverse and reverse_traverse return an iterator of
NodeEdge
objects.NodeEdge
objects mark start (similar to<div>
) and end (similar to</div>
) of each node.descendants returns an iterator of
Node
objects. This is probably more useful if you want to play with the Node contents.added a short "Similar Functions" section to the inline documentation to point users in the right direction.
Improves on issue #369