blob: c32b6f9d60d4b751d30d0539f103ee7c52e6a633 [file] [log] [blame]
Guido van Rossum582646a1996-05-28 22:30:17 +00001
Guido van Rossum667d7041995-08-04 04:20:48 +00002/* Return the full version string. */
3
Guido van Rossum020dfe71995-09-18 21:40:19 +00004#include "Python.h"
5
Guido van Rossum667d7041995-08-04 04:20:48 +00006#include "patchlevel.h"
7
Guido van Rossum667d7041995-08-04 04:20:48 +00008const char *
Thomas Woutersf70ef4f2000-07-22 18:47:25 +00009Py_GetVersion(void)
Guido van Rossum667d7041995-08-04 04:20:48 +000010{
Serhiy Storchaka598ceae2017-11-28 17:56:10 +020011 static char version[250];
12 PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
13 PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
14 return version;
Guido van Rossum667d7041995-08-04 04:20:48 +000015}