Skip to content

Instantly share code, notes, and snippets.

@FrankGrimm
Created March 9, 2021 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrankGrimm/f4892ad525667d35d28b9b2609fc66f9 to your computer and use it in GitHub Desktop.
Save FrankGrimm/f4892ad525667d35d28b9b2609fc66f9 to your computer and use it in GitHub Desktop.
def positions(self):
yield self.Position(self.root(), self)
for child in self._children:
for position in child.positions():
yield position
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment