diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-06-19 15:16:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-19 15:16:38 (GMT) |
commit | 533bff4e9fe221a7c9cf12795fd2d002e87bfa6a (patch) | |
tree | 07d92fbe29a9ac2e96cfa41cc1af7bcbe98636c2 /Doc/c-api | |
parent | 686c6f303a6e9e54b50401be0ae3dc6aa2fcf05a (diff) | |
download | cpython-533bff4e9fe221a7c9cf12795fd2d002e87bfa6a.zip cpython-533bff4e9fe221a7c9cf12795fd2d002e87bfa6a.tar.gz cpython-533bff4e9fe221a7c9cf12795fd2d002e87bfa6a.tar.bz2 |
bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798) (GH-26805)
(cherry picked from commit 291848195f85e23c01adb76d5a0ff9c6eb7f2614)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/object.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index a387b4a..05faa72 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -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 |