Staging
v0.5.1
https://github.com/python/cpython
Revision eb3c52a0d273491e745e0cbff2b73900bb96aa45 authored by Emily Morehouse on 27 June 2017, 16:08:47 UTC, committed by Victor Stinner on 27 June 2017, 16:08:47 UTC
1 parent de1850b
Raw File
Tip revision: eb3c52a0d273491e745e0cbff2b73900bb96aa45 authored by Emily Morehouse on 27 June 2017, 16:08:47 UTC
[3.5] bpo-30769: Fix reference leak introduced in 7770394 (GH-2416) (#2447)
Tip revision: eb3c52a
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