MCPcopy Index your code
hub / github.com/apache/fory / serialize_deserialize

Function serialize_deserialize

python/pyfory/tests/test_thread_safe.py:62–69  ·  view source on GitHub ↗
(thread_id)

Source from the content-addressed store, hash-verified

60 errors = []
61
62 def serialize_deserialize(thread_id):
63 try:
64 person = Person(name=f"Person{thread_id}", age=20 + thread_id)
65 data = fory.serialize(person)
66 result = fory.deserialize(data)
67 results.append((thread_id, result))
68 except Exception as e:
69 errors.append((thread_id, e))
70
71 threads = []
72 for i in range(10):

Callers

nothing calls this directly

Calls 4

PersonClass · 0.70
serializeMethod · 0.65
deserializeMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected