Staging
v0.5.1
Revision 44719a771767b43cc0ee1d50c896179c8722a7d7 authored by Larry Hastings on 28 September 2013, 22:51:00 UTC, committed by Larry Hastings on 28 September 2013, 22:51:00 UTC
1 parent 346f402
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