We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cf3409 commit 07f631dCopy full SHA for 07f631d
1 file changed
Doc/c-api/object.rst
@@ -311,12 +311,12 @@ Object Protocol
311
returned. This is the equivalent to the Python expression ``len(o)``.
312
313
314
-.. 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)
315
316
Return an estimated length for the object *o*. First try to return its
317
actual length, then an estimate using :meth:`~object.__length_hint__`, and
318
finally return the default value. On error return ``-1``. This is the
319
- equivalent to the Python expression ``operator.length_hint(o, default)``.
+ equivalent to the Python expression ``operator.length_hint(o, defaultvalue)``.
320
321
.. versionadded:: 3.4
322
0 commit comments