gh-118761: Improve import time for `csv` (#128858) · python/cpython@d5e9aa6 · GitHub
Skip to content

Commit d5e9aa6

Browse files
authored
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`.
1 parent d3adf02 commit d5e9aa6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/csv.py

Lines changed: 1 addition & 1 deletion
Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)