mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
bpo-16086: Fix PyType_GetFlags() documentation (GH-10758)
PyType_GetFlags() return type is unsigned long, not long.
This commit is contained in:
parent
73104fa1e6
commit
9fbcfc08e5
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue