{
  "id": "python-sys-monitoring-table",
  "kind": "table",
  "slug": "python-sys-monitoring",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/python-sys-monitoring/",
  "title": "Register a sys.monitoring callback for execution events",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "sys.monitoring",
      "source": "Python PEPs",
      "detail": "Namespace within the sys module"
    },
    {
      "name": "tool identifiers",
      "source": "Python PEPs",
      "detail": "Integers in the range 0 to 5 inclusive"
    },
    {
      "name": "events",
      "source": "Python PEPs",
      "detail": "Execution events of interest"
    },
    {
      "name": "callbacks",
      "source": "Python PEPs",
      "detail": "Called when those events occur"
    }
  ],
  "related_slugs": [
    "python-exceptions-hierarchy",
    "python-functools",
    "python-contextlib"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Public-Domain (Python PEPs); PSF-2.0 (Python docs); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}