view Python/getversion.c @ 68724:e55e7f197649

Issue #3080: PyImport_ImportModuleNoBlock() uses Unicode
author Victor Stinner <victor.stinner@haypocalc.com>
date Sun, 13 Mar 2011 21:57:27 -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;
}