Staging
v0.5.1
https://github.com/python/cpython
Revision 96c4de960cfb1e3cea646a09d86dea5e36c6b471 authored by Georg Brandl on 14 November 2014, 10:12:53 UTC, committed by Georg Brandl on 14 November 2014, 10:12:53 UTC
1 parent 01bd3c1
Raw File
Tip revision: 96c4de960cfb1e3cea646a09d86dea5e36c6b471 authored by Georg Brandl on 14 November 2014, 10:12:53 UTC
Closes #22868: make example less ambiguous.
Tip revision: 96c4de9
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