Skip to content

Commit c24d68f

Browse files
committed
Remove get_lazy_modules from docs
1 parent 49712b7 commit c24d68f

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

Doc/library/sys.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -940,18 +940,6 @@ always available. Unless explicitly noted otherwise, all variables are read-only
940940
.. versionadded:: next
941941

942942

943-
.. function:: get_lazy_modules()
944-
945-
Returns a set of fully-qualified module names that have been
946-
lazily imported. This is primarily useful for diagnostics and
947-
introspection.
948-
949-
Note that modules are removed from this set when they are reified
950-
(actually loaded on first use).
951-
952-
.. versionadded:: next
953-
954-
955943
.. function:: getrefcount(object)
956944

957945
Return the reference count of the *object*. The count returned is generally one

Doc/whatsnew/3.15.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,8 @@ eager:
164164
import myapp.slow_module # lazy (matches filter)
165165
import json # eager (does not match filter)
166166
167-
For debugging and introspection, :func:`sys.get_lazy_modules` returns a set
168-
containing the names of all modules that have been lazily imported but not
169-
yet loaded. The proxy type itself is available as
170-
:data:`types.LazyImportType` for code that needs to detect lazy imports
171-
programmatically.
167+
The proxy type itself is available as :data:`types.LazyImportType` for code
168+
that needs to detect lazy imports programmatically.
172169

173170
There are some restrictions on where the ``lazy`` keyword can be used. Lazy
174171
imports are only permitted at module scope; using ``lazy`` inside a

0 commit comments

Comments
 (0)