/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.11.15
Python/getversion.c
17 строк
406 B
Gabriele N. Tornetta
bpo-43931: Export Python version as API data (GH-25577)
10 дек 2021, 04:52
Не верифицирован
10 дек 2021, 04:52
5066908
Код
Авторство
О чём код?
/* Return the full version string. */ #include "Python.h" #include "patchlevel.h" const char * Py_GetVersion(void) { static char version[250]; PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler()); return version; } // Export the Python hex version as a constant. const unsigned long Py_Version = PY_VERSION_HEX;