Staging
v0.5.1
https://github.com/python/cpython
Revision 9c94ba4e7d679e7ba3cb80739275726656fd859b authored by Christian Heimes on 30 October 2008, 21:34:02 UTC, committed by Christian Heimes on 30 October 2008, 21:34:02 UTC
1 parent df32b39
Raw File
Tip revision: 9c94ba4e7d679e7ba3cb80739275726656fd859b authored by Christian Heimes on 30 October 2008, 21:34:02 UTC
Issue #4200: Changed the atexit module to store its state in its PyModuleDef atexitmodule. This fixes a bug with multiple subinterpeters. The bug was found by Graham Dumpletom during his work on a 3.0 port of mod_wsgi. The patch has been reviewed by Benjamin.
Tip revision: 9c94ba4
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