https://github.com/python/cpython/commit/b8910fc4446c245ebe2aeff2eaf99b490887619c
commit: b8910fc4446c245ebe2aeff2eaf99b490887619c
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: picnixz <[email protected]>
date: 2025-11-02T13:57:03Z
summary:

[3.13] Docs: avoid informal formulation in `Doc/c-api/conversion.rst` 
(GH-140898) (#140913)

Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898)
(cherry picked from commit 173cc53d9fdc596d7a19102fa407c829f9c71516)

Co-authored-by: RayXu <[email protected]>

files:
M Doc/c-api/conversion.rst

diff --git a/Doc/c-api/conversion.rst b/Doc/c-api/conversion.rst
index 4aaf3905e81c8a..869ab7079a1b8f 100644
--- a/Doc/c-api/conversion.rst
+++ b/Doc/c-api/conversion.rst
@@ -41,7 +41,7 @@ The return value (*rv*) for these functions should be 
interpreted as follows:
   ``rv + 1`` bytes would have been needed to succeed. ``str[size-1]`` is 
``'\0'``
   in this case.
 
-* When ``rv < 0``, "something bad happened." ``str[size-1]`` is ``'\0'`` in
+* When ``rv < 0``, the output conversion failed and ``str[size-1]`` is 
``'\0'`` in
   this case too, but the rest of *str* is undefined. The exact cause of the 
error
   depends on the underlying platform.
 

_______________________________________________
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