Skip to content

Commit

Permalink
GH-99293: Document that Py_TPFLAGS_VALID_VERSION_TAG shouldn't be u…
Browse files Browse the repository at this point in the history
…sed. (#GH-101736)

Document that Py_TPFLAGS_VALID_VERSION_TAG shouldn't be used.
  • Loading branch information
markshannon committed Feb 9, 2023
1 parent 1c49e61 commit ecfd2d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Doc/c-api/typeobj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,16 @@ and :c:type:`PyType_Type` effectively act as defaults.)
.. versionadded:: 3.10


.. data:: Py_TPFLAGS_VALID_VERSION_TAG

Internal. Do not set or unset this flag.
To indicate that a class has changed call :c:func:`PyType_Modified`

.. warning::
This flag is present in header files, but is an internal feature and should
not be used. It will be removed in a future version of CPython


.. c:member:: const char* PyTypeObject.tp_doc
An optional pointer to a NUL-terminated C string giving the docstring for this
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Document that the Py_TPFLAGS_VALID_VERSION_TAG is an internal feature,
should not be used, and will be removed.

0 comments on commit ecfd2d3

Please sign in to comment.