File: getversion.c

package info (click to toggle)
python2.4 2.4.4-3%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 44,684 kB
  • ctags: 86,948
  • sloc: ansic: 305,981; python: 271,903; sh: 5,540; makefile: 4,186; perl: 3,736; lisp: 3,678; xml: 894; objc: 756; cpp: 7; sed: 2
file content (15 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

/* 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;
}