diff Doc/api/init.tex @ 36070:9697eeeaf246 legacy-trunk

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.
author Barry Warsaw <barry@python.org>
date Sun, 18 Dec 2005 01:27:35 +0000
parents 2fb0c76d0251
children 45f7b7383a4e
line wrap: on
line diff
--- a/Doc/api/init.tex	Sat Dec 17 22:24:12 2005 +0000
+++ b/Doc/api/init.tex	Sun Dec 18 01:27:35 2005 +0000
@@ -272,6 +272,12 @@
   \withsubitem{(in module sys)}{\ttindex{version}}
 \end{cfuncdesc}
 
+\begin{cfuncdesc}{const char*}{Py_GetBuildNumber}{}
+  Return a string representing the Subversion revision that this Python
+  executable was built from.  This number is a string because it may contain a
+  trailing 'M' if Python was built from a mixed revision source tree.
+\end{cfuncdesc}
+
 \begin{cfuncdesc}{const char*}{Py_GetPlatform}{}
   Return the platform identifier for the current platform.  On \UNIX,
   this is formed from the ``official'' name of the operating system,