MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / ClassWithSlots

Class ClassWithSlots

tests/cloudpickle_test.py:2319–2323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2317 for slots in [["registered_attribute"], "registered_attribute"]:
2318
2319 class ClassWithSlots:
2320 __slots__ = slots
2321
2322 def __init__(self):
2323 self.registered_attribute = 42
2324
2325 initial_obj = ClassWithSlots()
2326 depickled_obj = pickle_depickle(initial_obj, protocol=self.protocol)

Callers 1

Calls

no outgoing calls

Tested by 1