Staging
v0.5.1
Revision 1c6970fac994be2b1f9e3415e09c07ff01657563 authored by Victor Stinner on 12 May 2014, 23:32:36 UTC, committed by Victor Stinner on 12 May 2014, 23:32:36 UTC
argument and without current frame (ex: embedded Python).
1 parent b0539b2
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