GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JSON CLI: I/O operation on closed file" when parsing JSON Lines file · Issue #132631 · python/cpython Closed Labels 3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:With any JSON Lines file, such as: ❯ cat input.jsonl {"ingredients":["frog", "water", "chocolate", "glucose"]} {"ingredients":["chocolate","steel bolts"]} This works on Python 3.12: ❯ python3.12 --version Python 3.12.10 ❯ python3.12 -m json.tool --json-lines input.jsonl { "ingredients": [ "frog", "water", "chocolate", "glucose" ] } { "ingredients": [ "chocolate", "steel bolts" ] } But not 3.13 or higher: ❯ python3.13 --version Python 3.13.3 ❯ python3.13 -m json.tool --json-lines input.jsonl I/O operation on closed file. ❯ python3.14 --version Python 3.14.0a7 ❯ python3.14 -m json.tool --json-lines input.jsonl I/O operation on closed file. ❯ ./python.exe --version --version Python 3.14.0a7+ (heads/main:e42bda94411, Apr 17 2025, 14:59:38) [Clang 16.0.0 (clang-1600.0.26.6)] ❯ ./python.exe Lib/test/test_json/test_tool.py -h ❯ ./python.exe -m json.tool --json-lines input.jsonl I/O operation on closed file. CPython versions tested on:3.13, 3.14, CPython main branch Operating systems tested on:macOS, Linux Linked PRs
Activity
MetadataMetadataAssigneesLabels3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |