https://github.com/python/cpython/commit/ad2f0cb997a3711ae3a729cfc453d8004ba1a34e
commit: ad2f0cb997a3711ae3a729cfc453d8004ba1a34e
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: pablogsal <[email protected]>
date: 2026-05-20T15:17:28Z
summary:

[3.15] PEP 810 - Update some error strings (GH-150126) (#150135)

files:
M Objects/lazyimportobject.c
M Python/import.c

diff --git a/Objects/lazyimportobject.c b/Objects/lazyimportobject.c
index 451f335e033f16..fa1eb25047d961 100644
--- a/Objects/lazyimportobject.c
+++ b/Objects/lazyimportobject.c
@@ -135,7 +135,7 @@ PyDoc_STRVAR(lazy_import_doc,
 "lazy_import(builtins, name, fromlist=None, /)\n"
 "--\n"
 "\n"
-"Represents a deferred import that will be resolved on first use.\n"
+"Represents a lazy import that will be resolved on first use.\n"
 "\n"
 "Instances of this object accessed from the global scope will be\n"
 "automatically imported based upon their name and then replaced with\n"
diff --git a/Python/import.c b/Python/import.c
index ef6f5274a23665..352941a836ef21 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -4055,7 +4055,7 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, 
PyObject *lazy_import)
 
         // Create a cause exception showing where the lazy import was declared.
         PyObject *msg = PyUnicode_FromFormat(
-            "deferred import of '%U' raised an exception during resolution",
+            "lazy import of '%U' raised an exception during resolution",
             import_name
         );
         Py_DECREF(import_name); // Done with import_name.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to