Revision 33aeb1736dad53881807bde017798b8be312cf14 authored by Andrés Delfino on 07 November 2018, 18:12:12 UTC, committed by Miss Islington (bot) on 07 November 2018, 18:12:27 UTC
(cherry picked from commit bfe1839aa994f0d84471254418a4ecfa7c7c9b9c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
1 parent 0d9896d
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