https://github.com/python/cpython/commit/9037a386c6ed0c71cf8525ef91c55694ebeedc36
commit: 9037a386c6ed0c71cf8525ef91c55694ebeedc36
branch: main
author: RayXu <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-11-06T11:18:30+05:30
summary:

docs: fix a grammatical error in function.rst (#140990)

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

diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst
index 764b2ac610be4d..0bac638957155e 100644
--- a/Doc/c-api/function.rst
+++ b/Doc/c-api/function.rst
@@ -200,7 +200,7 @@ There are a few functions specific to Python functions.
    runtime behavior depending on optimization decisions, it does not change
    the semantics of the Python code being executed.
 
-   If *event* is ``PyFunction_EVENT_DESTROY``,  Taking a reference in the
+   If *event* is ``PyFunction_EVENT_DESTROY``, taking a reference in the
    callback to the about-to-be-destroyed function will resurrect it, preventing
    it from being freed at this time. When the resurrected object is destroyed
    later, any watcher callbacks active at that time will be called again.

_______________________________________________
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