You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(utilities): rename utilities.lazy to utilities.importlib #2747
The owner asked in session to rename pcapkit.utilities.lazy, added by #2735 for #2729, to pcapkit.utilities.importlib or simply imp.
Taking importlib. It follows the stdlib-domain precedent set by pcapkit.utilities.pickle (#2722). imp is the name of the stdlib module removed in Python 3.12, so reusing it invites confusion. Say if you would rather have imp.
Scope
Move pcapkit/utilities/lazy.py to pcapkit/utilities/importlib.py. lazy_exports keeps its name.
Update every import site in the pcapkit.const packages, plus the tests.
Rename docs/source/pcapkit/utilities/lazy.rst to importlib.rst, and update its toctree entry and every :mod: / :func: reference, including const-vendor-pairing.rst.
utilities.lazy was never released, so the old path gets no re-export, no deprecation note and no mention anywhere.
A fix is in progress on a branch off dea098b15. It does the module move, the docs page rename and every import site, and checks that the stdlib importlib is still the one resolved after import pcapkit. The docs build stays at zero warnings.
Activity
JarryShaw commentedon Nov 3, 2026
A fix is in progress on a branch off
dea098b15. It does the module move, the docs page rename and every import site, and checks that the stdlibimportlibis still the one resolved afterimport pcapkit. The docs build stays at zero warnings.JarryShaw commentedon Nov 3, 2026
The PR is #2748.
refactor(utilities): rename utilities.lazy to utilities.importlib (#2747