]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix comment about PyObject_IsTrue. (GH-22343)
authorStefan Pochmann <609905+pochmann@users.noreply.github.com>
Wed, 7 Oct 2020 14:12:52 +0000 (16:12 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Oct 2020 14:12:52 +0000 (09:12 -0500)
The `for` statement doesn't use a condition and this function, the `while` statement does.

Objects/object.c

index fe3734404f5cf9773b5d12bbeb33e21bea16dbae..9889503cfd893846579e4d1c58809546c5921c83 100644 (file)
@@ -1387,7 +1387,7 @@ PyObject_GenericSetDict(PyObject *obj, PyObject *value, void *context)
 }
 
 
-/* Test a value used as condition, e.g., in a for or if statement.
+/* Test a value used as condition, e.g., in a while or if statement.
    Return -1 if an error occurred */
 
 int