MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / descend

Method descend

pythonwhat/probe.py:149–156  ·  view source on GitHub ↗

Descend depth first into all child nodes

(self, include_me=True)

Source from the content-addressed store, hash-verified

147 self.child_list.append(child)
148
149 def descend(self, include_me=True):
150 """Descend depth first into all child nodes"""
151 if include_me:
152 yield self
153
154 for child in self.child_list:
155 yield child
156 yield from child.descend()
157
158 @property
159 def depth(self):

Callers 1

__call__Method · 0.95

Calls 1

descendMethod · 0.45

Tested by

no test coverage detected