view Python/getversion.c @ 80553:bf1bf3bf3fe2 3.3

Address reviews for open’s opener argument doc patch (#13424). * Remove example deemed not helpful. * Simplify the other one. * Add missing target to ref.
author Éric Araujo <merwok@netwok.org>
date Thu, 22 Nov 2012 00:13:49 -0500
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;
}