https://github.com/python/cpython
Raw File
Tip revision: ba4217537c8a9f316921b8e3468bec86a9cab5f6 authored by Pablo Galindo on 03 May 2021, 19:33:17 UTC
Python 3.10.0b1
Tip revision: ba42175
getversion.c

/* 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;
}
back to top