view Python/getversion.c @ 31618:bc006682acb2 legacy-trunk

SF patch #910929: Optimize list comprehensions Add a new opcode, LIST_APPEND, and apply it to the code generation for list comprehensions. Reduces the per-loop overhead by about a third.
author Raymond Hettinger <python@rcn.com>
date Sun, 07 Mar 2004 07:31:06 +0000
parents 379fc66f4c96
children 9f2fbee420da
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;
}