Skip to content

Commit

Permalink
Docs: PyUnstable_Long_IsCompact() docs now mention PyLong_AsNativeByt…
Browse files Browse the repository at this point in the history
…es() (python#116634)
  • Loading branch information
skirpichev authored and diegorusso committed Apr 17, 2024
1 parent 9842223 commit c8a0c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/c-api/long.rst
Expand Up @@ -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.
Expand Down

0 comments on commit c8a0c61

Please sign in to comment.