Staging
v0.8.1
Revision 5a29c5cc452e3fa52f48581094c7125d94d65cf6 authored by Benjamin Peterson on 23 May 2015, 16:02:14 UTC, committed by Benjamin Peterson on 23 May 2015, 16:02:14 UTC
1 parent ec7abfb
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