MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / __init__

Method __init__

src/4/delegating-iteration/example.py:4–6  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

2
3class Node:
4 def __init__(self, value):
5 self._value = value
6 self._children = []
7
8 def __repr__(self):
9 return 'Node({!r})'.format(self._value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected