gh-121423: Improve import time of `socket` (#121424) · python/cpython@7bd964d · GitHub
Skip to content

Commit 7bd964d

Browse files
Wulian233eendebakptpicnixzgpsheadhugovk
authored
gh-121423: Improve import time of socket (#121424)
Improve import time of `socket` by writing `socket.errorTab` as a constant and lazy import modules. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
1 parent 91ff700 commit 7bd964d

2 files changed

Lines changed: 109 additions & 101 deletions

File tree

Lib/socket.py

Lines changed: 107 additions & 101 deletions
Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)