mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
expose PYTHON_API_VERSION macro as sys.api_version. Closes patch # 601456.
This commit is contained in:
parent
f62a89b1e0
commit
8e790e7007
3 changed files with 13 additions and 0 deletions
|
@ -459,6 +459,12 @@ else:
|
|||
\end{verbatim}
|
||||
\end{datadesc}
|
||||
|
||||
\begin{datadesc}{api_version}
|
||||
The C API version for this interpreter. Programmers may find this useful
|
||||
when debugging version conflicts between Python and extension
|
||||
modules. \versionadded{2.3}
|
||||
\end{datadesc}
|
||||
|
||||
\begin{datadesc}{version_info}
|
||||
A tuple containing the five components of the version number:
|
||||
\var{major}, \var{minor}, \var{micro}, \var{releaselevel}, and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue