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

Method __init__

Solutions/4_2/validate.py:55–58  ·  view source on GitHub ↗
(self, name, shares, price)

Source from the content-addressed store, hash-verified

53 class Stock:
54 __slots__ = ('name','_shares','_price')
55 def __init__(self, name, shares, price):
56 self.name = name
57 self.shares = shares
58 self.price = price
59
60 def __repr__(self):
61 return f'Stock({self.name!r}, {self.shares!r}, {self.price!r})'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected