{
    "mode": "pydoc",
    "parameter": "_weakref",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/_weakref/json",
    "generated": "2026-06-02T15:02:29Z",
    "sections": {
        "NAME": {
            "content": "weakref - Weak-reference support module.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "getweakrefcount",
                    "content": "Return the number of weak references to 'object'.\n"
                },
                {
                    "name": "getweakrefs",
                    "content": "getweakrefs(object) -- return a list of all weak reference objects\nthat point to 'object'.\n"
                },
                {
                    "name": "proxy",
                    "content": "proxy(object[, callback]) -- create a proxy object that weakly\nreferences 'object'.  'callback', if given, is called with a\nreference to the proxy when 'object' is about to be finalized.\n"
                }
            ]
        },
        "FILE": {
            "content": "(built-in)\n\n",
            "subsections": []
        }
    },
    "summary": "weakref - Weak-reference support module.",
    "flags": [],
    "examples": [],
    "see_also": []
}