GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GH-109653: Defer import of ``importlib.metadata._adapters`` (python/c… · python/importlib_metadata@6673723

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • importlib_metadata
    • __init__.py
  • newsfragments
    • +.feature.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎importlib_metadata/__init__.py‎

Copy file name to clipboardExpand all lines: importlib_metadata/__init__.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import posixpath
1919
import collections
2020

21-
from . import _adapters, _meta
21+
from . import _meta
2222
from .compat import py39
2323
from ._collections import FreezableDefaultDict, Pair
2424
from ._compat import (
@@ -461,6 +461,9 @@ def metadata(self) -> _meta.PackageMetadata:
461461
Custom providers may provide the METADATA file or override this
462462
property.
463463
"""
464+
# deferred for performance (python/cpython#109829)
465+
from . import _adapters
466+
464467
opt_text = (
465468
self.read_text('METADATA')
466469
or self.read_text('PKG-INFO')
Collapse file

‎newsfragments/+.feature.rst‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deferred select imports in for speedup (python/cpython#109829).

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.