File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
9494 ignored. If there are no digits or *str * is not NULL-terminated following the
9595 digits and trailing whitespace, :exc: `ValueError ` will be raised.
9696
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 `.
97+ .. seealso :: :c:func:`PyLong_AsNativeBytes() ` and
98+ :c:func: ` PyLong_FromNativeBytes() ` functions can be used to convert
99+ a :c:type: ` PyLongObject ` to/from an array of bytes in base `` 256 ` `.
100100
101101
102102.. c :function :: PyObject* PyLong_FromUnicodeObject (PyObject *u, int base)
You can’t perform that action at this time.
0 commit comments