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

Class FixedCustomer

example_code/item_064.py:176–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175print("Example 13")
176class FixedCustomer: # No parent class
177 first_name = Field()
178 last_name = Field()
179 prefix = Field()
180 suffix = Field()
181
182cust = FixedCustomer()
183print(f"Before: {cust.first_name!r} {cust.__dict__}")

Callers 1

item_064.pyFile · 0.85

Calls 1

FieldClass · 0.70

Tested by

no test coverage detected