Staging
v0.5.1
https://github.com/python/cpython
Revision 136726537ffd92b0f3e8dabb23023ed514852e2e authored by Ezio Melotti on 10 May 2011, 22:02:56 UTC, committed by Ezio Melotti on 10 May 2011, 22:02:56 UTC
1 parent ee18b6f
Raw File
Tip revision: 136726537ffd92b0f3e8dabb23023ed514852e2e authored by Ezio Melotti on 10 May 2011, 22:02:56 UTC
#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.
Tip revision: 1367265
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