Staging
v0.5.1
https://github.com/python/cpython
Revision c0a56ff9089718c042bc17e4c3e78fb32eb12525 authored by Neal Norwitz on 27 March 2008, 06:52:01 UTC, committed by Neal Norwitz on 27 March 2008, 06:52:01 UTC
1 parent 5802bb2
Raw File
Tip revision: c0a56ff9089718c042bc17e4c3e78fb32eb12525 authored by Neal Norwitz on 27 March 2008, 06:52:01 UTC
Pluralss only need one s, not 2 (intss -> ints)
Tip revision: c0a56ff
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