{
    "mode": "pydoc",
    "parameter": "copyreg",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/copyreg/json",
    "generated": "2026-06-02T15:09:58Z",
    "sections": {
        "NAME": {
            "content": "copyreg - Helper to provide extensibility for pickle.\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/copyreg.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is only useful to add pickle support for extension types defined in\nC, not for instances of user-defined classes.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "newobj(cls, *args)\n\nnewobjex(cls, args, kwargs)\nUsed by pickle protocol 4, instead of newobj to allow classes with\nkeyword-only arguments to be pickled correctly.\n",
            "subsections": [
                {
                    "name": "add_extension",
                    "content": "Register an extension code.\n"
                },
                {
                    "name": "clear_extension_cache",
                    "content": ""
                },
                {
                    "name": "constructor",
                    "content": ""
                },
                {
                    "name": "pickle",
                    "content": ""
                },
                {
                    "name": "remove_extension",
                    "content": "Unregister an extension code.  For testing only.\n"
                }
            ]
        },
        "DATA": {
            "content": "all = ['pickle', 'constructor', 'addextension', 'removeextension...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/copyreg.py\n\n",
            "subsections": []
        }
    },
    "summary": "copyreg - Helper to provide extensibility for pickle.",
    "flags": [],
    "examples": [],
    "see_also": []
}