Staging
v0.5.1
https://github.com/python/cpython
Revision 1fb312ce1f147ea84ecb6f5993a20d1a85c53dc3 authored by Miss Islington (bot) on 14 December 2018, 20:37:45 UTC, committed by Brett Cannon on 14 December 2018, 20:37:45 UTC
1 parent f2df9b9
Raw File
Tip revision: 1fb312ce1f147ea84ecb6f5993a20d1a85c53dc3 authored by Miss Islington (bot) on 14 December 2018, 20:37:45 UTC
bpo-35450: reflect in docs that venv module is not always creating a copy of the Python binary (GH-11144) (GH-11168)
Tip revision: 1fb312c
getversion.c

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