{
  "id": "python-fileinput-table",
  "kind": "table",
  "slug": "python-fileinput",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/python-fileinput/",
  "title": "Python fileinput: loop over lines from multiple input streams",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "fileinput",
      "source": "Python docs",
      "detail": "loops over standard input or a list of files."
    },
    {
      "name": "input()",
      "source": "Python docs",
      "detail": "accepts an alternative list of filenames."
    },
    {
      "name": "OSError",
      "source": "Python docs",
      "detail": "is raised on an I/O error while opening or reading."
    }
  ],
  "related_slugs": [
    "python-pathlib",
    "python-read-write-files",
    "python-json"
  ],
  "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."
}