Skip to content

Create nodes iterator #3

Description

@jimboca

Previously could just do this:

        for node in self.nodes:
            if self.nodes[node].address != self.address:
                self.nodes[node].query()

But now have to call a method and define our own list of nodes

        nodes = self.poly.getNodes()
        for node in nodes:
            if nodes[node].address != self.address:
                nodes[node].query()

should be done the real python way? https://docs.python.org/3/library/itertools.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions