]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-16086: Fix PyType_GetFlags() documentation (GH-10758)
authorEddie Elizondo <eduardo.elizondorueda@gmail.com>
Thu, 29 Nov 2018 09:11:36 +0000 (01:11 -0800)
committerVictor Stinner <vstinner@redhat.com>
Thu, 29 Nov 2018 09:11:36 +0000 (10:11 +0100)
PyType_GetFlags() return type is unsigned long, not long.

Doc/c-api/type.rst

index 60c5e73960b3a1f9133f2d937ee7711eac48e725..4dfd53fb9f076fc6a3906b4e840c4c117deb96ab 100644 (file)
@@ -35,7 +35,7 @@ Type Objects
 
    Clear the internal lookup cache. Return the current version tag.
 
-.. c:function:: long PyType_GetFlags(PyTypeObject* type)
+.. c:function:: unsigned long PyType_GetFlags(PyTypeObject* type)
 
    Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This function is primarily
    meant for use with `Py_LIMITED_API`; the individual flag bits are
@@ -44,6 +44,9 @@ Type Objects
 
    .. versionadded:: 3.2
 
+   .. versionchanged:: 3.4
+      The return type is now ``unsigned long`` rather than ``long``.
+
 
 .. c:function:: void PyType_Modified(PyTypeObject *type)