Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions peps/pep-0810.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1581,6 +1581,16 @@ could be used by the filter mechanism or by static analysis tools. The current
filter API is designed to accommodate such future additions without requiring
changes to the core language specification.

C API for lazy imports
-----------------------

No dedicated C API is planned for creating or resolving lazy imports. This
feature is designed as a purely Python-facing mechanism, as C extensions
typically need immediate access to modules and cannot benefit from deferred
loading. Existing C API functions like ``PyImport_ImportModule()`` remain
unchanged and continue to perform eager imports. If compelling use cases emerge,
this could be revisited in future versions.

Alternate Implementation Ideas
==============================

Expand Down