Skip to content

Commit 811e00c

Browse files
committed
Make sys.lazy_modules match PEP and keep internal lazy submodules tracking internal
1 parent d36e080 commit 811e00c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Include/internal/pycore_interp_structs.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,9 @@ struct _import_state {
353353
// lazily imported. This value is only for debugging/introspection
354354
// purposes and is not used by the runtime.
355355
PyObject *lazy_modules;
356-
// A dict mapping package names to a set of submodule names that
357-
// have been imported lazily from packages which have been imported
358-
// lazily. When the package is reified we need to add a
359-
// LazyImportObject which refers to the submodule on the module.
356+
// Submodules that have been imported lazily from modules which have
357+
// been imported lazily. When the module is imported we need to add
358+
// a LazyImportObject which refers to the submodule on the module.
360359
PyObject *lazy_pending_submodules;
361360
#ifdef Py_GIL_DISABLED
362361
PyMutex lazy_mutex;

0 commit comments

Comments
 (0)