diff options
| author | Barry Warsaw <barry@python.org> | 2005-12-18 01:27:35 +0000 |
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2005-12-18 01:27:35 +0000 |
| commit | c9d59b04c98877eb8723373415248968c495f298 (patch) | |
| tree | 804fa50ba73c445ea07f19a57b9adf9eeb1d2dda /Include/pythonrun.h | |
| parent | 84256ed5b7262df9602e81be24f1f49ca1b448ec (diff) | |
| download | cpython-c9d59b04c98877eb8723373415248968c495f298.tar.gz | |
Expose Subversion revision number (calculated via "svnversion .") to Python.
Add C API function Py_GetBuildNumber(), add it to the interactive prompt
banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number
attribute. The build number is a string instead of an int because it may
contain a trailing 'M' if there are local modifications.
Diffstat (limited to 'Include/pythonrun.h')
| -rw-r--r-- | Include/pythonrun.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h index e309078a69..6cf33d8723 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -108,6 +108,7 @@ PyAPI_FUNC(const char *) Py_GetPlatform(void); PyAPI_FUNC(const char *) Py_GetCopyright(void); PyAPI_FUNC(const char *) Py_GetCompiler(void); PyAPI_FUNC(const char *) Py_GetBuildInfo(void); +PyAPI_FUNC(const char *) Py_GetBuildNumber(void); /* Internal -- various one-time initializations */ PyAPI_FUNC(PyObject *) _PyBuiltin_Init(void); |
