8000 bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-… · python/cpython@139c577 · GitHub
[go: up one dir, main page]

Skip to content

Commit 139c577

Browse files
bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798) (GH-26804)
(cherry picked from commit 2918481)
1 parent c6cd2ec commit 139c577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/object.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ Object Protocol
311311
returned. This is the equivalent to the Python expression ``len(o)``.
312312
313313
314-
.. c:function:: Py_ssize_t PyObject_LengthHint(PyObject *o, Py_ssize_t default)
314+
.. c:function:: Py_ssize_t PyObject_LengthHint(PyObject *o, Py_ssize_t defaultvalue)
315315
316316
Return an estimated length for the object *o*. First try to return its
317317
actual length, then an estimate using :meth:`~object.__length_hint__`, and
318318
finally return the default value. On error return ``-1``. This is the
319-
equivalent to the Python expression ``operator.length_hint(o, default)``.
319+
equivalent to the Python expression ``operator.length_hint(o, defaultvalue)``.
320320
321321
.. versionadded:: 3.4
322322

0 commit comments

Comments
 (0)
0