Staging
v0.8.1
Revision 103e32355dc2a343f2847100662220cccbf9154c authored by Barry Warsaw on 29 September 2009, 22:41:09 UTC, committed by Barry Warsaw on 29 September 2009, 22:41:09 UTC
1 parent 61df9e5
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