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

Function unregister_pickle_by_value

cloudpickle/cloudpickle.py:166–173  ·  view source on GitHub ↗

Unregister that the input module should be pickled by value.

(module)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls