view Python/getversion.c @ 54293:bd2fb1be130e 3.0

Merged revisions 72874 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r72874 | benjamin.peterson | 2009-05-23 14:36:27 -0500 (Sat, 23 May 2009) | 13 lines Merged revisions 72871-72872 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r72871 | benjamin.peterson | 2009-05-23 14:24:37 -0500 (Sat, 23 May 2009) | 1 line support building with subversion 1.7 #6094 ........ r72872 | benjamin.peterson | 2009-05-23 14:31:02 -0500 (Sat, 23 May 2009) | 1 line reorder name ........ ................
author Benjamin Peterson <benjamin@python.org>
date Sat, 23 May 2009 19:42:15 +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;
}