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

Method _asdict

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

Source from the content-addressed store, hash-verified

297
298
299 def _asdict(self):
300 return dict(
301 red=self.red,
302 green=self.green,
303 blue=self.blue,
304 )
305
306
307print("Example 32")

Callers 1

item_051.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected