Staging
v0.8.1
Revision 318a18eb889e8733ffb25ada139fdd423606a609 authored by Miss Islington (bot) on 25 May 2020, 20:01:20 UTC, committed by GitHub on 25 May 2020, 20:01:20 UTC

Co-authored-by: Sadhana Srinivasan <rotuna@Sadhanas-MBP.fritz.box>
(cherry picked from commit 448325369ff73011d34d6c3a493014fe3ead8843)

Co-authored-by: Rotuna <sadhanasrinivasan@protonmail.com>
1 parent 31084be
Raw File
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