Staging
v0.5.1
Revision 385b3686ff87da838af03b219540d704335f2bc6 authored by Larry Hastings on 24 July 2017, 02:40:13 UTC, committed by Larry Hastings on 24 July 2017, 02:40:13 UTC
1 parent 2363678
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