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

Class SubclassWithSlots

tests/cloudpickle_test.py:2335–2337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2333 obj.non_registered_attribute = 1
2334
2335 class SubclassWithSlots(ClassWithSlots):
2336 def __init__(self):
2337 self.unregistered_attribute = 1
2338
2339 obj = SubclassWithSlots()
2340 s = cloudpickle.dumps(obj, protocol=self.protocol)

Callers 1

Calls

no outgoing calls

Tested by 1