blob: 7af16fc8109e973ee6e23583ee484582cf285e7c [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{
Guido van Rossumeda232f1999-04-22 12:03:40 +000011 static char version[250];
Jeremy Hylton518ab1c2001-11-28 20:42:20 +000012 PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
13 PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
Guido van Rossum667d7041995-08-04 04:20:48 +000014 return version;
15}