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

Method serialize

example_code/item_063.py:107–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 self.args = args
106
107 def serialize(self):
108 return json.dumps(
109 {
110 "class": self.__class__.__name__,
111 "args": self.args,
112 }
113 )
114
115 def __repr__(self):
116 name = self.__class__.__name__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected