mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
Docs: PyUnstable_Long_IsCompact() docs now mention PyLong_AsNativeBytes() (#116634)
This commit is contained in:
parent
7af4b9f253
commit
e39795f2cb
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue