Skip to content

Commit dcf4f52

Browse files
generatedunixname1734921407115435meta-codesync[bot]
authored andcommitted
Sync pre-release CPython 3.15 branch from GitHub (2026-09-04)
Summary: Imported python/cpython `3.15.0rc2+dev` from upstream rev [`0ca288a`](https://www.github.com/python/cpython/commit/0ca288a8cec08f04314d2b320549cf8ae299419c) (committed 2026-09-04 14:29:34+00:00). # Commit Info - Base: (`3.15.0rc2+dev`) - [`6409b1e`](https://www.github.com/python/cpython/commit/6409b1e8548ae7cb5dcca0d971653d574254ec1f) (commit date: 2026-09-03 05:53:13+00:00) - Imported: (`3.15.0rc2+dev`) - [`0ca288a`](https://www.github.com/python/cpython/commit/0ca288a8cec08f04314d2b320549cf8ae299419c) (commit date: 2026-09-04 14:29:34+00:00) Reviewed By: itamaro Differential Revision: D118923641 fbshipit-source-id: 01c2c68cf200eff19a26e26dea7dc3bfee481684
1 parent 652e641 commit dcf4f52

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

Doc/library/sys.rst

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,11 +1485,24 @@ always available. Unless explicitly noted otherwise, all variables are read-only
14851485
.. data:: lazy_modules
14861486

14871487
A :class:`set` of fully qualified module name strings that have been lazily
1488-
imported in the current interpreter but not yet loaded. When a
1489-
lazily imported module is accessed for the first time, its name is removed
1490-
from this set.
1488+
imported in the current interpreter but not yet loaded.
1489+
When a lazily imported module is accessed for the first time, its name is
1490+
typically removed from this set.
14911491

1492-
This attribute is intended for debugging and introspection.
1492+
The set may contain some additional strings.
1493+
It is intended for debugging and introspection, and consumers are expected
1494+
to verify each entry's status.
1495+
1496+
.. impl-detail::
1497+
1498+
Currently, :data:`!lazy_modules` may also contain:
1499+
1500+
* names of *attributes* (non-modules), such as ``"pathlib.Path"`` after
1501+
running ``lazy from pathlib import Path``, and
1502+
* names of items than have already been accessed.
1503+
1504+
In future versions of Python, these may be removed, and/or additional
1505+
extras may be added.
14931506

14941507
See also :func:`set_lazy_imports` and :pep:`810`.
14951508

0 commit comments

Comments
 (0)