]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: PyUnstable_Long_IsCompact() docs now mention PyLong_AsNativeBytes() (#116634)
authorSergey B Kirpichev <skirpichev@gmail.com>
Wed, 13 Mar 2024 23:01:13 +0000 (02:01 +0300)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 23:01:13 +0000 (00:01 +0100)
Doc/c-api/long.rst

index 582f5c7bf05471c853d8fb78a2516854a7304407..6a7eba7761de1ae1e5ff64bf9a36611a3f4aa83f 100644 (file)
@@ -450,7 +450,7 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to disambiguate.
    a “fast path” for small integers. For compact values use
    :c:func:`PyUnstable_Long_CompactValue`; for others fall back to a
    :c:func:`PyLong_As* <PyLong_AsSize_t>` function or
-   :c:func:`calling <PyObject_CallMethod>` :meth:`int.to_bytes`.
+   :c:func:`PyLong_AsNativeBytes`.
 
    The speedup is expected to be negligible for most users.