]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798)
authorMark Dickinson <mdickinson@enthought.com>
Sat, 19 Jun 2021 14:32:24 +0000 (15:32 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Jun 2021 14:32:24 +0000 (15:32 +0100)
Doc/c-api/object.rst

index 42e3340acb79a02e1b5752d549ec20dbf2944517..70cff69dc16c144ac3bca54a8f0ca9b074c61a2e 100644 (file)
@@ -311,12 +311,12 @@ Object Protocol
    returned.  This is the equivalent to the Python expression ``len(o)``.
 
 
-.. c:function:: Py_ssize_t PyObject_LengthHint(PyObject *o, Py_ssize_t default)
+.. c:function:: Py_ssize_t PyObject_LengthHint(PyObject *o, Py_ssize_t defaultvalue)
 
    Return an estimated length for the object *o*. First try to return its
    actual length, then an estimate using :meth:`~object.__length_hint__`, and
    finally return the default value. On error return ``-1``. This is the
-   equivalent to the Python expression ``operator.length_hint(o, default)``.
+   equivalent to the Python expression ``operator.length_hint(o, defaultvalue)``.
 
    .. versionadded:: 3.4