Thanks to visit codestin.com Credit goes to github.com
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 e9287ea commit ce4b9c8Copy full SHA for ce4b9c8
1 file changed
Doc/c-api/long.rst
@@ -94,9 +94,9 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
94
ignored. If there are no digits or *str* is not NULL-terminated following the
95
digits and trailing whitespace, :exc:`ValueError` will be raised.
96
97
- .. seealso:: Python methods :meth:`int.to_bytes` and :meth:`int.from_bytes`
98
- to convert a :c:type:`PyLongObject` to/from an array of bytes in base
99
- ``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``.
100
101
102
.. c:function:: PyObject* PyLong_FromUnicodeObject(PyObject *u, int base)
0 commit comments