💾 Archived View for tris.fyi › pydoc › copyreg captured on 2023-01-29 at 03:08:59. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-07-16)
-=-=-=-=-=-=-
Helper to provide extensibility for pickle. This is only useful to add pickle support for extension types defined in C, not for instances of user-defined classes.
add_extension(module, name, code) Register an extension code.
clear_extension_cache()
constructor(object)
pickle(ob_type, pickle_function, constructor_ob=None)
pickle_complex(c)
pickle_union(obj)
remove_extension(module, name, code) Unregister an extension code. For testing only.
dispatch_table = {<class 'complex'>: <function pickle_complex at 0x7f75e3bfed40>, <class 'types.UnionType'>: <function pickle_union at 0x7f75e3bfedd0>, <class 're.Pattern'>: <function _pickle at 0x7f75e3bfea70>}