From: Sergey B Kirpichev Date: Wed, 13 Mar 2024 23:01:13 +0000 (+0300) Subject: Docs: PyUnstable_Long_IsCompact() docs now mention PyLong_AsNativeBytes() (#116634) X-Git-Tag: v3.13.0a6~332 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e39795f2cbad5375536f4be6b3c3906f457992bf;p=thirdparty%2FPython%2Fcpython.git Docs: PyUnstable_Long_IsCompact() docs now mention PyLong_AsNativeBytes() (#116634) --- diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index 582f5c7bf054..6a7eba7761de 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.