Skip to content

Commit 40a37e9

Browse files
Yhg1sAA-Turner
andauthored
Update peps/pep-0810.rst
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 8a1cefe commit 40a37e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

peps/pep-0810.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ in `SPEC 1 <https://scientific-python.org/specs/spec-0001/>`_. There's also the
6868
third-party `lazy_loader <https://pypi.org/project/lazy-loader/>`_ package.
6969
Imports used solely for static type checking are another source of potentially unneeded
7070
imports, and there are similarly disparate approaches to minimizing the overhead.
71-
All use cases are not covered by these approaches; however, these approaches add runtime overhead in unexpected places,
72-
in non-obvious ways, and without a clear standard.
71+
The various approaches used here to defer or remove eager imports do not cover
72+
all potential use-cases for a general lazy import mechanism. There is no clear standard,
73+
and there are several drawbacks including runtime overhead in unexpected places,
74+
or worse runtime introspection.
7375

7476
This proposal introduces **lazy imports syntax** with a design that is local, explicit,
7577
controlled, and granular. Each of these qualities is essential to making the feature

0 commit comments

Comments
 (0)