{
  "id": "python-keyword-table",
  "kind": "table",
  "slug": "python-keyword",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/python-keyword/",
  "title": "Python keyword: test whether a string is a Python keyword",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "iskeyword",
      "source": "Python docs",
      "detail": "returns True if the string is a Python keyword."
    },
    {
      "name": "kwlist",
      "source": "Python docs",
      "detail": "holds every keyword defined for the interpreter."
    },
    {
      "name": "issoftkeyword",
      "source": "Python docs",
      "detail": "tests for a soft keyword."
    }
  ],
  "related_slugs": [
    "python-f-strings",
    "python-exceptions-hierarchy",
    "python-dataclasses"
  ],
  "license": "CC-BY-4.0",
  "source_license": "PSF-2.0 (Python docs); PSF-2.0 (CPython docs); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}