[Python-checkins] [2.7] Minor C API documentation improvements. (GH-17699)

Benjamin Peterson webhook-mailer at python.org
Tue Dec 24 23:34:42 EST 2019


https://github.com/python/cpython/commit/362ede2232107fc54d406bb9de7711ff7574e1d4
commit: 362ede2232107fc54d406bb9de7711ff7574e1d4
branch: 2.7
author: Benjamin Peterson <benjamin at python.org>
committer: GitHub <noreply at github.com>
date: 2019-12-24T22:34:38-06:00
summary:

[2.7] Minor C API documentation improvements. (GH-17699)

(cherry picked from commit 5c7ed7550ec2da16d7679e538fcd7c1a5631811f)

Co-authored-by: William Ayd <william.ayd at icloud.com>

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

diff --git a/Doc/c-api/iter.rst b/Doc/c-api/iter.rst
index fb2a71cf1a825..4f708829a89e4 100644
--- a/Doc/c-api/iter.rst
+++ b/Doc/c-api/iter.rst
@@ -36,7 +36,7 @@ something like this::
        /* propagate error */
    }
 
-   while (item = PyIter_Next(iterator)) {
+   while ((item = PyIter_Next(iterator))) {
        /* do something with item */
        ...
        /* release reference when done */



More information about the Python-checkins mailing list