Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: d2f3857c40a340f252397eb16b4289403af8bf76 authored by Georg Brandl on 30 January 2011, 08:37:19 UTC
#10961: fix exception handling in new pydoc server code.
Tip revision: d2f3857
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