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

Method __repr__

example_code/item_059.py:119–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 self.quota_consumed = 0
118
119 def __repr__(self):
120 return (
121 f"NewBucket(max_quota={self.max_quota}, "
122 f"quota_consumed={self.quota_consumed})"
123 )
124
125
126 print("Example 8")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected