From e39795f2cbad5375536f4be6b3c3906f457992bf Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Thu, 14 Mar 2024 02:01:13 +0300 Subject: [PATCH] Docs: PyUnstable_Long_IsCompact() docs now mention PyLong_AsNativeBytes() (#116634) --- Doc/c-api/long.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index 582f5c7bf05471..6a7eba7761de1a 100644 --- a/Doc/c-api/long.rst +++ b/Doc/c-api/long.rst @@ -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* ` function or - :c:func:`calling ` :meth:`int.to_bytes`. + :c:func:`PyLong_AsNativeBytes`. The speedup is expected to be negligible for most users.