https://github.com/python/cpython/commit/ce4b9c8464706a58d0c98c2b0deeec07e7496ccc
commit: ce4b9c8464706a58d0c98c2b0deeec07e7496ccc
branch: main
author: Sergey B Kirpichev <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2024-08-17T09:13:31Z
summary:

gh-121477: mention new PyLong_*Bytes() functions in PyLong_FromString() 
(#121478)

* gh-121477: mention new PyLong_*Bytes() functions in PyLong_FromString()

* Update Doc/c-api/long.rst

---------

Co-authored-by: Kumar Aditya <[email protected]>

files:
M Doc/c-api/long.rst

diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index 9f2c48d98b8344..c7c6fe9f942bd8 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -94,9 +94,9 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to 
disambiguate.
    ignored.  If there are no digits or *str* is not NULL-terminated following 
the
    digits and trailing whitespace, :exc:`ValueError` will be raised.
 
-   .. seealso:: Python methods :meth:`int.to_bytes` and :meth:`int.from_bytes`
-      to convert a :c:type:`PyLongObject` to/from an array of bytes in base
-      ``256``. You can call those from C using :c:func:`PyObject_CallMethod`.
+   .. seealso:: :c:func:`PyLong_AsNativeBytes()` and
+      :c:func:`PyLong_FromNativeBytes()` functions can be used to convert
+      a :c:type:`PyLongObject` to/from an array of bytes in base ``256``.
 
 
 .. c:function:: PyObject* PyLong_FromUnicodeObject(PyObject *u, int base)

_______________________________________________
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]

Reply via email to