https://github.com/python/cpython/commit/ec9b40d740ef1f261ff19152505ad9c0d859b105
commit: ec9b40d740ef1f261ff19152505ad9c0d859b105
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-06-06T15:06:37+03:00
summary:

[3.15] Doc: fix order of PyLong_FromUnsignedLongLong (GH-150937) (GH-151012)

(cherry picked from commit 4833b2031edc97a79f44afacd2a8f40f51a9b2c5)

Co-authored-by: Inada Naoki <[email protected]>

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

diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index 60e3ae4a064e72..874e422d4701dd 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -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)
 

_______________________________________________
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