From a85a6cd762eced5ca74f937ad790ada85e7ee132 Mon Sep 17 00:00:00 2001 From: youknowdot Date: Wed, 14 Oct 2026 05:45:57 -0700 Subject: [PATCH] Sync stdlib utilities from CPython 3.15.0 final (#9111) Regenerate nine utility modules and associated tests with scripts/update_lib from CPython d220409a13b77de7a6c30abe16ea90db01528edc. Preserve existing mimetypes fixes by excluding that module from this split. OpenAI Codex assisted with source audit, update_lib execution, and focused release validation: 64 tests passed, one existing WASI-only skip. Assisted-by: OpenAI Codex:model version unavailable --- Lib/configparser.py | 6 ++- Lib/csv.py | 37 +++++++++++------- Lib/fractions.py | 10 ++--- Lib/graphlib.py | 61 +++++++++++++++++++++++++++-- Lib/heapq.py | 12 +++--- Lib/ipaddress.py | 16 ++++++-- Lib/netrc.py | 56 ++++++++++++++------------ Lib/plistlib.py | 35 +++++++---------- Lib/statistics.py | 19 ++++----- Lib/test/test_configparser.py | 33 ++++++++++++++-- Lib/test/test_csv.py | 74 +++++++++++++++++++++++++++++++++++ Lib/test/test_ipaddress.py | 14 +++++++ Lib/test/test_netrc.py | 38 ++++++++++++++++++ Lib/test/test_plistlib.py | 19 +++++++++ Lib/test/test_statistics.py | 6 +-- 15 files changed, 341 insertions(+), 95 deletions(-) diff --git a/Lib/configparser.py b/Lib/configparser.py index 3c452afe8..88015ef60 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -618,7 +618,8 @@ class RawConfigParser(MutableMapping): _OPT_TMPL = r""" (?P