view Python/getversion.c @ 63959:e54baebbd6ff

Issue #9203: Computed gotos are now enabled by default on supported compilers (which are detected by the configure script). They can still be disable selectively by specifying --without-computed-gotos.
author Antoine Pitrou <solipsis@pitrou.net>
date Fri, 13 Aug 2010 21:15:58 +0000
parents 9f2fbee420da
children
line wrap: on
line source


/* 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;
}