Staging
v0.5.1
https://github.com/python/cpython
Revision e0b9261a2fecb05e12ccf7bc139ebc31c03d4325 authored by Gregory P. Smith on 11 June 2008, 03:40:10 UTC, committed by Gregory P. Smith on 11 June 2008, 03:40:10 UTC
1 parent 190d56e
Raw File
Tip revision: e0b9261a2fecb05e12ccf7bc139ebc31c03d4325 authored by Gregory P. Smith on 11 June 2008, 03:40:10 UTC
swap stringobject.h and bytesobject.h contents to make sense. PyString in
Tip revision: e0b9261
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