Staging
v0.5.1
https://github.com/python/cpython
Revision 819ad377766d64428b1ffdc885d953eae86c6502 authored by Miss Islington (bot) on 14 October 2019, 22:21:43 UTC, committed by Ned Deily on 14 October 2019, 22:21:43 UTC
(cherry picked from commit 4504b4500d2a1a80c26b27b0bfff8b624d5ce06c)

Co-authored-by: Julien Palard <julien@palard.fr>
1 parent 5b18ce6
Raw File
Tip revision: 819ad377766d64428b1ffdc885d953eae86c6502 authored by Miss Islington (bot) on 14 October 2019, 22:21:43 UTC
Doc: 3.8 is now stable. (GH-16790) (GH-16793)
Tip revision: 819ad37
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