{
    "mode": "pydoc",
    "parameter": "_warnings",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/_warnings/json",
    "generated": "2026-12-04T20:21:03Z",
    "sections": {
        "NAME": {
            "content": "warnings\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "warnings provides basic warning filtering support.\nIt is a helper module to speed up interpreter start-up.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "warn",
                    "content": "Issue a warning, or maybe ignore it or raise an exception.\n\nmessage\nText of the warning message.\ncategory\nThe Warning category subclass. Defaults to UserWarning.\nstacklevel\nHow far up the call stack to make this warning appear. A value of 2 for\nexample attributes the warning to the caller of the code calling warn().\nsource\nIf supplied, the destroyed object which emitted a ResourceWarning\nskipfileprefixes\nAn optional tuple of module filename prefixes indicating frames to skip\nduring stacklevel computations for stack frame attribution.\n"
                },
                {
                    "name": "warn_explicit",
                    "content": "Issue a warning, or maybe ignore it or raise an exception.\n"
                }
            ]
        },
        "DATA": {
            "content": "filters = [('default', None, <class 'DeprecationWarning'>, 'main',...\n",
            "subsections": []
        },
        "FILE": {
            "content": "(built-in)\n\n",
            "subsections": []
        }
    },
    "summary": "warnings",
    "flags": [],
    "examples": [],
    "see_also": []
}