Staging
v0.8.1
Revision 6a336f6484a13c01516b6bfc3b767075cc2cb4f7 authored by Benjamin Peterson on 03 July 2010, 13:57:30 UTC, committed by Benjamin Peterson on 03 July 2010, 13:57:30 UTC
1 parent 0063367
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