]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Minor C API documentation improvements. (GH-17697)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 Dec 2019 04:35:01 +0000 (20:35 -0800)
committerBenjamin Peterson <benjamin@python.org>
Wed, 25 Dec 2019 04:35:01 +0000 (22:35 -0600)
commite9039f32b3e8b827106cf74db80fbf9477035687
tree1b19dd16d037be97be12c037d074f3465b004065
parent4ed79b78002d1c1bca8ea72aaadea07710aca4e9
Minor C API documentation improvements. (GH-17697)

The added parentheses around the PyIter_Next assignment suppress the following warning which gcc throws without:
```
warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
```
The other change is a typo fix
(cherry picked from commit 5c7ed7550ec2da16d7679e538fcd7c1a5631811f)

Co-authored-by: William Ayd <william.ayd@icloud.com>
Doc/c-api/iter.rst
Doc/includes/custom.c