MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / NamedSubTree

Class NamedSubTree

example_code/item_054.py:127–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126print("Example 6")
127class NamedSubTree(ToDictMixin):
128 def __init__(self, name, tree_with_parent):
129 self.name = name
130 self.tree_with_parent = tree_with_parent
131
132my_tree = NamedSubTree("foobar", root.left.right)
133orig_print = print

Callers 1

item_054.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected