summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-11-29 11:07:38 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-11-29 11:07:38 (GMT)
commit2a852a2b122cf9545909234cdc8fca564dc8f805 (patch)
tree23c811da211ae98d7e2cf58ed9140da53b875c91
parent833a7067a4d5621d024511d9166db7331c4650c9 (diff)
downloadcpython-2a852a2b122cf9545909234cdc8fca564dc8f805.zip
cpython-2a852a2b122cf9545909234cdc8fca564dc8f805.tar.gz
cpython-2a852a2b122cf9545909234cdc8fca564dc8f805.tar.bz2
bpo-16086: Fix PyType_GetFlags() documentation (GH-10758) (GH-10790)
PyType_GetFlags() return type is unsigned long, not long. (cherry picked from commit 9fbcfc08e5814d7aa9287740187e461425a99f67) Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com>
-rw-r--r--Doc/c-api/type.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index 60c5e73..4dfd53f 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -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)