]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121423: Improve import time of `socket` (#121424)
authorWulian <1055917385@qq.com>
Wed, 4 Sep 2024 10:00:37 +0000 (18:00 +0800)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 10:00:37 +0000 (12:00 +0200)
commit7bd964dbbe301059f3971b1be281bee0938bc70a
treeaf90a2fbce50539563cd0eeaf26dfdda9d5e78da
parent91ff700de28f3415cbe44f58ce84a2670b8c9f15
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>
Lib/socket.py
Misc/NEWS.d/next/Library/2024-07-06-12-37-10.gh-issue-121423.vnxrl4.rst [new file with mode: 0644]