]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: fix order of PyLong_FromUnsignedLongLong (#150937)
authorInada Naoki <songofacandy@gmail.com>
Sat, 6 Jun 2026 11:37:49 +0000 (20:37 +0900)
committerGitHub <noreply@github.com>
Sat, 6 Jun 2026 11:37:49 +0000 (20:37 +0900)
Doc/c-api/long.rst

index 60e3ae4a064e729494fab11b1d25a3d0bcde7976..874e422d4701dd8dadd2d95344f14662b8a0b0ae 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)