view Python/getversion.c @ 60598:01d1fd775d16

Issue #7316: the acquire() method of lock objects in the :mod:`threading` module now takes an optional timeout argument in seconds. Timeout support relies on the system threading library, so as to avoid a semi-busy wait loop.
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 14 Apr 2010 15:44:10 +0000
parents 379fc66f4c96
children 9f2fbee420da
line wrap: on
line source


/* 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;
}