Staging
v0.5.1
https://github.com/python/cpython
Revision 44ca05afc89c9967f5dbc6c3ad89fc298c460e93 authored by Irit Katriel on 27 November 2020, 16:38:54 UTC, committed by GitHub on 27 November 2020, 16:38:54 UTC
1 parent f5a19ea
Raw File
Tip revision: 44ca05afc89c9967f5dbc6c3ad89fc298c460e93 authored by Irit Katriel on 27 November 2020, 16:38:54 UTC
bpo-42474: test TracebackException comparison to non-equal instances (GH-23522)
Tip revision: 44ca05a
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