https://github.com/python/cpython/commit/3c2781dc5f2f400ab4cae79d63051365d15b22e4
commit: 3c2781dc5f2f400ab4cae79d63051365d15b22e4
branch: main
author: Peter Holloway <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-10-20T14:23:57+05:30
summary:

Fix typo in PyIter_Send docs (#140336)

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

diff --git a/Doc/c-api/iter.rst b/Doc/c-api/iter.rst
index bf9df62c6f1706..6cfd24c5ae60c8 100644
--- a/Doc/c-api/iter.rst
+++ b/Doc/c-api/iter.rst
@@ -54,6 +54,6 @@ There are two functions specifically for working with 
iterators.
 
    - ``PYGEN_RETURN`` if iterator returns. Return value is returned via 
*presult*.
    - ``PYGEN_NEXT`` if iterator yields. Yielded value is returned via 
*presult*.
-   - ``PYGEN_ERROR`` if iterator has raised and exception. *presult* is set to 
``NULL``.
+   - ``PYGEN_ERROR`` if iterator has raised an exception. *presult* is set to 
``NULL``.
 
    .. versionadded:: 3.10

_______________________________________________
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