copyreg - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


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(module, name, code)
        Register an extension code.

    clear_extension_cache()

    constructor(object)

    pickle(ob_type, pickle_function, constructor_ob=None)

    remove_extension(module, name, code)
        Unregister an extension code.  For testing only.

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

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



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:15 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!