]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Doc: fix order of PyLong_FromUnsignedLongLong (GH-150937) (GH-151013)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 Jun 2026 12:06:26 +0000 (14:06 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Jun 2026 12:06:26 +0000 (15:06 +0300)
(cherry picked from commit 4833b2031edc97a79f44afacd2a8f40f51a9b2c5)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Doc/c-api/long.rst

index 31cf1abf0c338138c2bd4e59eb935ccc58a248d0..f026fd6561d8dadfb7acc4ff28d1bad8eaa5bc84 100644 (file)
@@ -71,6 +71,12 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to disambiguate.
    on failure.
 
 
+.. c:function:: PyObject* PyLong_FromUnsignedLongLong(unsigned long long v)
+
+   Return a new :c:type:`PyLongObject` object from a C :c:expr:`unsigned long long`,
+   or ``NULL`` on failure.
+
+
 .. c:function:: PyObject* PyLong_FromInt32(int32_t value)
                 PyObject* PyLong_FromInt64(int64_t value)
 
@@ -81,12 +87,6 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to disambiguate.
    .. versionadded:: 3.14
 
 
-.. c:function:: PyObject* PyLong_FromUnsignedLongLong(unsigned long long v)
-
-   Return a new :c:type:`PyLongObject` object from a C :c:expr:`unsigned long long`,
-   or ``NULL`` on failure.
-
-
 .. c:function:: PyObject* PyLong_FromUInt32(uint32_t value)
                 PyObject* PyLong_FromUInt64(uint64_t value)