]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118761: Improve import time for `csv` (#128858)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sat, 18 Jan 2025 10:45:18 +0000 (11:45 +0100)
committerGitHub <noreply@github.com>
Sat, 18 Jan 2025 10:45:18 +0000 (11:45 +0100)
commitd5e9aa690a190bcfa9b43cd3858e26b7b2f72d4f
treeb97370c9961d9a8cb24cfb862de50b1526b6c8e2
parentd3adf02c90a570c5ee5d9b8cefe9b10305cff9e6
gh-118761: Improve import time for `csv` (#128858)

This reduces the import time of the `csv` module by up to five times,
by importing `re` on demand.

In particular, the `re` module is no more implicitly exposed as `csv.re`.
Lib/csv.py
Misc/NEWS.d/next/Library/2025-01-15-09-45-43.gh-issue-118761.TvAC8E.rst [new file with mode: 0644]