Staging
v0.8.1
Revision 88f4dd64513a9738eaec6a1228c62dd4ab3dbafe authored by Georg Brandl on 12 May 2013, 10:51:38 UTC, committed by Georg Brandl on 12 May 2013, 10:51:38 UTC
1 parent 521ed52
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