MCPcopy
hub / github.com/cloudpipe/cloudpickle / unregister_pickle_by_value

Function unregister_pickle_by_value

cloudpickle/cloudpickle.py:167–174  ·  view source on GitHub ↗

Unregister that the input module should be pickled by value.

(module)

Source from the content-addressed store, hash-verified

165
166
167def unregister_pickle_by_value(module):
168 """Unregister that the input module should be pickled by value."""
169 if not isinstance(module, types.ModuleType):
170 raise ValueError(f"Input should be a module object, got {str(module)} instead")
171 if module.__name__ not in _PICKLE_BY_VALUE_MODULES:
172 raise ValueError(f"{module} is not registered for pickle by value")
173 else:
174 _PICKLE_BY_VALUE_MODULES.remove(module.__name__)
175
176
177def list_registry_pickle_by_value():

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…