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

Method __init__

example_code/item_065.py:74–77  ·  view source on GitHub ↗
(self, destination, method, weight)

Source from the content-addressed store, hash-verified

72print("Example 2")
73class Delivery:
74 def __init__(self, destination, method, weight):
75 self.destination = destination
76 self.method = method
77 self.weight = weight
78
79 @classmethod
80 def from_row(cls, row):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected