Skip to content

iterating does not work as expected #16

@amras0000

Description

@amras0000

The behavior I would expect is:

    def __iter__(self):
        yield self
        for child in _loopallchildren(self):
            yield child

Iterating over quad doesn't yield itself. This makes ex. iterating over all items in the tree more tedious.:

for node in myQuadTree:
    yield node.item
for quad in myQuadTree:
    for node in quad.nodes:
        yield node.item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions