Staging
v0.8.1
Revision 25a044ee6ce50a9172478cc61d914644778455f6 authored by Ɓukasz Langa on 29 August 2019, 21:51:19 UTC, committed by GitHub on 29 August 2019, 21:51:19 UTC
when built on non-Windows system without fd system call support,
like older versions of macOS.
(cherry picked from commit 7fcc2088a50a4ecb80e5644cd195bee209c9f979)

Co-authored-by: Ned Deily <nad@python.org>
1 parent 96631dc
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