Staging
v0.8.1
Revision 3a4875e5e3818680adc48abfc507c2176876f22f authored by Eli Bendersky on 26 March 2012, 18:43:32 UTC, committed by Eli Bendersky on 26 March 2012, 18:43:32 UTC
samples and a reference. Also fix the other nits mentioned in the issue.

This also partially addresses issue #14006.
1 parent 70ea34d
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