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

Method _astuple

example_code/item_051.py:255–256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

253
254
255 def _astuple(self):
256 return (self.red, self.green, self.blue)
257
258
259print("Example 28")

Callers 7

__eq__Method · 0.95
item_051.pyFile · 0.45
__eq__Method · 0.45
__lt__Method · 0.45
__le__Method · 0.45
__gt__Method · 0.45
__ge__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected