💾 Archived View for tris.fyi › pydoc › copyreg captured on 2022-04-28 at 17:30:20. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-03-01)

➡️ Next capture (2022-07-16)

🚧 View Differences

-=-=-=-=-=-=-

Back to module index

Go to module by name

copyreg

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.

Functions

add_extension

add_extension(module, name, code)

  Register an extension code.

clear_extension_cache

clear_extension_cache()

constructor

constructor(object)

pickle

pickle(ob_type, pickle_function, constructor_ob=None)

pickle_complex

pickle_complex(c)

remove_extension

remove_extension(module, name, code)

  Unregister an extension code.  For testing only.

Other members

dispatch_table = {<class 'complex'>: <function pickle_complex at 0x7ff3607fc820>, <class 're.Pattern'>: <function _pickle at 0x7ff3607fc550>, <class 'parser.st'>: <built-in function _pickler>}