https://github.com/python/cpython
Raw File
Tip revision: aa73e1722eb9835dc99fd8983885a141112ee4ab authored by Ned Deily on 16 February 2021, 01:30:33 UTC
3.6.13
Tip revision: aa73e17
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