{
  "id": "python-linecache-table",
  "kind": "table",
  "slug": "python-linecache",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/python-linecache/",
  "title": "linecache gets any line from a Python source file and caches repeated reads. (cheat table)",
  "columns": [
    "topic",
    "fact",
    "source_id"
  ],
  "rows": [
    {
      "topic": "C1",
      "fact": "linecache gets any line from a Python source file and caches repeated reads.",
      "source_id": "S1"
    },
    {
      "topic": "C2",
      "fact": "traceback uses linecache to retrieve source lines.",
      "source_id": "S1"
    },
    {
      "topic": "C3",
      "fact": "getline never raises; it returns an empty string on errors.",
      "source_id": "S1"
    },
    {
      "topic": "C4",
      "fact": "The source docs also describe the cache for many lines from one file.",
      "source_id": "S2"
    },
    {
      "topic": "C5",
      "fact": "The source docs also say traceback retrieves source lines through this module.",
      "source_id": "S2"
    }
  ],
  "related_slugs": [
    "python-traceback",
    "python-inspect"
  ],
  "license": "CC-BY-4.0",
  "as_of": "2026-11-23",
  "status": "draft"
}
