Staging
v0.8.1
https://github.com/python/cpython
Revision a93ee47422ba80ffc75465255df278e174ee803d authored by Phillip J. Eby on 21 April 2006, 21:53:37 UTC, committed by Phillip J. Eby on 21 April 2006, 21:53:37 UTC
1 parent 21fbd57
Raw File
Tip revision: a93ee47422ba80ffc75465255df278e174ee803d authored by Phillip J. Eby on 21 April 2006, 21:53:37 UTC
Guido wrote contextlib, not me, but thanks anyway. ;)
Tip revision: a93ee47
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