Skip to content

Create nodes iterator #3

@jimboca

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

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