Staging
v0.5.1
Revision a61d7f2490fd677343c28ac53e1b41cdb0e1d998 authored by Larry Hastings on 04 February 2018, 23:40:38 UTC, committed by Larry Hastings on 04 February 2018, 23:40:38 UTC
1 parent 2a5da97
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