view Python/getversion.c @ 78042:efb5e6ab10f4

Issue #15167 (as part of #13959): imp.get_magic() is no implemented in Lib/imp.py.
author Brett Cannon <brett@python.org>
date Mon, 09 Jul 2012 16:09:00 -0400
parents 0dcae455ec07
children
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;
}