https://github.com/python/cpython/commit/39b754a35976924f6df46cd475e889bcf8598ca1
commit: 39b754a35976924f6df46cd475e889bcf8598ca1
branch: main
author: Peter Bierma <[email protected]>
committer: vstinner <[email protected]>
date: 2025-02-03T12:46:13+01:00
summary:

gh-129407: Clarify that a `SystemError` isn't always CPython's fault (#129410)

files:
M Doc/library/exceptions.rst

diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index f72b11e34c5c3d..319d261ef3fb4d 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -562,9 +562,13 @@ The following exceptions are the exceptions that are 
usually raised.
 
    Raised when the interpreter finds an internal error, but the situation does 
not
    look so serious to cause it to abandon all hope. The associated value is a
-   string indicating what went wrong (in low-level terms).
+   string indicating what went wrong (in low-level terms). In :term:`CPython`,
+   this could be raised by incorrectly using Python's C API, such as returning
+   a ``NULL`` value without an exception set.
 
-   You should report this to the author or maintainer of your Python 
interpreter.
+   If you're confident that this exception wasn't your fault, or the fault of
+   a package you're using, you should report this to the author or maintainer
+   of your Python interpreter.
    Be sure to report the version of the Python interpreter (``sys.version``; 
it is
    also printed at the start of an interactive Python session), the exact error
    message (the exception's associated value) and if possible the source of the

_______________________________________________
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