https://github.com/python/cpython
Raw File
Tip revision: 865714a117aca026ecd407159bc6b380a0299bb8 authored by Pablo Galindo on 17 June 2021, 10:27:08 UTC
Python 3.10.0b3
Tip revision: 865714a
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