diff options
author | Sergey B Kirpichev <skirpichev@gmail.com> | 2024-03-13 23:01:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 23:01:13 (GMT) |
commit | e39795f2cbad5375536f4be6b3c3906f457992bf (patch) | |
tree | c762bad7593ade9c23efdc7a0101dbdf883295ee | |
parent | 7af4b9f25383793c9504c71f7b414d34528b8600 (diff) | |
download | cpython-e39795f2cbad5375536f4be6b3c3906f457992bf.zip cpython-e39795f2cbad5375536f4be6b3c3906f457992bf.tar.gz cpython-e39795f2cbad5375536f4be6b3c3906f457992bf.tar.bz2 |
Docs: PyUnstable_Long_IsCompact() docs now mention PyLong_AsNativeBytes() (#116634)
-rw-r--r-- | Doc/c-api/long.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index 582f5c7..6a7eba7 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* <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. |