Staging
v0.8.1
https://github.com/python/cpython
Revision c8aaf71dde4888864c0c351e2f935f87652c3d54 authored by Volker-Weissmann on 27 November 2020, 00:41:32 UTC, committed by GitHub on 27 November 2020, 00:41:32 UTC
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
1 parent a1652da
Raw File
Tip revision: c8aaf71dde4888864c0c351e2f935f87652c3d54 authored by Volker-Weissmann on 27 November 2020, 00:41:32 UTC
bpo-17852: Doc: Fix the tutorial about closing files (GH-23135)
Tip revision: c8aaf71
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