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

Method __init__

src/1/implementing_a_priority_queue/example.py:21–22  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

19# Example use
20class Item:
21 def __init__(self, name):
22 self.name = name
23 def __repr__(self):
24 return 'Item({!r})'.format(self.name)
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected