History

add hg and python

cinap_lenrek committed 15 years ago

Commit 4bb9e221 parent 987265c3706 files · +1228772 −-233Browse files

Showing the changes to sys/src/cmd/python/Python/getversion.c (1 of 3706 files). Show all

Unified · Split

sys/src/cmd/python/Python/getversion.c+15−0
@@ -0,0 +1,15 @@
1+
2+/* Return the full version string. */
3+
4+#include "Python.h"
5+
6+#include "patchlevel.h"
7+
8+const char *
9+Py_GetVersion(void)
10+{
11+ static char version[250];
12+ PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
13+ PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
14+ return version;
15+}