Staging
v0.5.1
https://github.com/python/cpython
Revision 73e3e76be5cb5a02f24be06abe994550da215bd7 authored by Victor Stinner on 16 May 2011, 15:16:18 UTC, committed by Victor Stinner on 16 May 2011, 15:16:18 UTC
1 parent 53b6a5f
Raw File
Tip revision: 73e3e76be5cb5a02f24be06abe994550da215bd7 authored by Victor Stinner on 16 May 2011, 15:16:18 UTC
Issue #12057: Convert CJK encoding testcase BLOB into multiple text files
Tip revision: 73e3e76
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