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

Method __init__

example_code/item_054.py:128–130  ·  view source on GitHub ↗
(self, name, tree_with_parent)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected