Staging
v0.5.1
Revision 516a6a254814d2bc6a90290dfc44d77fdfb4050b authored by Victor Stinner on 18 June 2019, 00:13:58 UTC, committed by Ned Deily on 18 June 2019, 00:13:57 UTC
(cherry picked from commit c1f5667be1e3ec5871560c677402c1252c6018a6)
1 parent ecafe8e
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