# copyreg - pydoc - phpman

Help on module copyreg:

## NAME
    copyreg - Helper to provide extensibility for pickle.

## MODULE REFERENCE
    <https://docs.python.org/3.10/library/copyreg.html>

    The following documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

## DESCRIPTION
    This is only useful to add pickle support for extension types defined in
    C, not for instances of user-defined classes.

## FUNCTIONS
    __newobj__(cls, *args)

    __newobj_ex__(cls, args, kwargs)
        Used by pickle protocol 4, instead of __newobj__ to allow classes with
        keyword-only arguments to be pickled correctly.

### add_extension
        Register an extension code.

### clear_extension_cache

### constructor

### pickle

### remove_extension
        Unregister an extension code.  For testing only.

## DATA
    __all__ = ['pickle', 'constructor', 'add_extension', 'remove_extension...

## FILE
    /usr/lib/python3.10/copyreg.py


