We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7af4b9f commit e39795fCopy full SHA for e39795f
Doc/c-api/long.rst
@@ -450,7 +450,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
450
a “fast path” for small integers. For compact values use
451
:c:func:`PyUnstable_Long_CompactValue`; for others fall back to a
452
:c:func:`PyLong_As* <PyLong_AsSize_t>` function or
453
- :c:func:`calling <PyObject_CallMethod>` :meth:`int.to_bytes`.
+ :c:func:`PyLong_AsNativeBytes`.
454
455
The speedup is expected to be negligible for most users.
456
0 commit comments