diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 474359a5cd98bd..1b262c9a245b5c 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -1102,7 +1102,7 @@ Accessing values exported from dlls ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Some shared libraries not only export functions, they also export variables. An -example in the Python library itself is the :c:data:`Py_Version`, Python +example in the Python library itself is the :c:var:`Py_Version`, Python runtime version number encoded in a single constant integer. :mod:`ctypes` can access values like this with the :meth:`~_CData.in_dll` class methods of diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index ec5263ec35c52f..64c1ca90e31ea1 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -2203,7 +2203,7 @@ New Features suspend and resume tracing and profiling. (Contributed by Victor Stinner in :issue:`43760`.) -* Added the :c:data:`Py_Version` constant which bears the same value as +* Added the :c:var:`Py_Version` constant which bears the same value as :c:macro:`PY_VERSION_HEX`. (Contributed by Gabriele N. Tornetta in :issue:`43931`.) diff --git a/Misc/NEWS.d/3.11.0a4.rst b/Misc/NEWS.d/3.11.0a4.rst index 3dd335929d655f..bf83c8497ca6ff 100644 --- a/Misc/NEWS.d/3.11.0a4.rst +++ b/Misc/NEWS.d/3.11.0a4.rst @@ -409,7 +409,7 @@ keyword parameters. .. nonce: zpChDi .. section: Core and Builtins -Added the :c:data:`Py_Version` constant which bears the same value as +Added the :c:var:`Py_Version` constant which bears the same value as :c:macro:`PY_VERSION_HEX`. Patch by Gabriele N. Tornetta. ..