https://github.com/python/cpython/commit/e39795f2cbad5375536f4be6b3c3906f457992bf
commit: e39795f2cbad5375536f4be6b3c3906f457992bf
branch: main
author: Sergey B Kirpichev <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2024-03-14T00:01:13+01:00
summary:
Docs: PyUnstable_Long_IsCompact() docs now mention PyLong_AsNativeBytes()
(#116634)
files:
M Doc/c-api/long.rst
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* <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.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]