Skip to content

Commit d5b3753

Browse files
committed
PEP 810: Clatify that no C-API will be added in this PEP
1 parent feef759 commit d5b3753

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

peps/pep-0810.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,6 +1581,16 @@ could be used by the filter mechanism or by static analysis tools. The current
15811581
filter API is designed to accommodate such future additions without requiring
15821582
changes to the core language specification.
15831583

1584+
C API for lazy imports
1585+
-----------------------
1586+
1587+
No dedicated C API is planned for creating or resolving lazy imports. This
1588+
feature is designed as a purely Python-facing mechanism, as C extensions
1589+
typically need immediate access to modules and cannot benefit from deferred
1590+
loading. Existing C API functions like ``PyImport_ImportModule()`` remain
1591+
unchanged and continue to perform eager imports. If compelling use cases emerge,
1592+
this could be revisited in future versions.
1593+
15841594
Alternate Implementation Ideas
15851595
==============================
15861596

0 commit comments

Comments
 (0)