diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 72f2e356c34f7c8..dc0fd975564cb04 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -300,15 +300,15 @@ __lazy_import__ as builtin___lazy_import__ Lazily imports a module. -Returns either the module to be imported or a imp.lazy_module object -which indicates the module to be lazily imported. +Returns either the eagerly imported module (of type types.ModuleType) +or lazily imported module (of type types.LazyImportType). [clinic start generated code]*/ static PyObject * builtin___lazy_import___impl(PyObject *module, PyObject *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level) -/*[clinic end generated code: output=300f1771094b9e8c input=9c85cccd6a885b9b]*/ +/*[clinic end generated code: output=300f1771094b9e8c input=b1895e4d57eb1c44]*/ { PyObject *builtins; PyThreadState *tstate = PyThreadState_GET(); diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index 46d24cbcecdb2c5..40d63782a2ba6d2 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -122,8 +122,8 @@ PyDoc_STRVAR(builtin___lazy_import____doc__, "\n" "Lazily imports a module.\n" "\n" -"Returns either the module to be imported or a imp.lazy_module object\n" -"which indicates the module to be lazily imported."); +"Returns either the eagerly imported module (of type types.ModuleType)\n" +"or lazily imported module (of type types.LazyImportType)."); #define BUILTIN___LAZY_IMPORT___METHODDEF \ {"__lazy_import__", _PyCFunction_CAST(builtin___lazy_import__), METH_FASTCALL|METH_KEYWORDS, builtin___lazy_import____doc__}, @@ -1661,4 +1661,4 @@ zip_vectorcall(PyObject *type, PyObject *const *args, kwnames ? PyTuple_GET_SIZE(kwnames) : 0, NULL, kwnames); } -/*[clinic end generated code: output=a67fa5cf74c85d07 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=622b4c9e7e16a178 input=a9049054013a1b77]*/