possible to look up an entry in the package index, determine the
dependencies for a package, and download the required packages.
-% XXX put example here
+\begin{verbatim}
+VERSION = '1.0'
+setup(name='PyPackage',
+ version=VERSION,
+ requires=['numarray', 'zlib (>=1.1.4)'],
+ obsoletes=['OldPackage']
+ download_url=('http://www.example.com/pypackage/dist/pkg-%s.tar.gz'
+ % VERSION),
+ )
+\end{verbatim}
\begin{seealso}
shadow password database on systems that support it.
% XXX give example
-% XXX patch #1382163: sys.subversion, Py_GetBuildNumber()
+\item The Python developers switched from CVS to Subversion during the 2.5
+development process. Information about the exact build version is
+available as the \code{sys.subversion} variable, a 3-tuple
+of \code{(\var{interpreter-name}, \var{branch-name}, \var{revision-range})}.
+For example, at the time of writing
+my copy of 2.5 was reporting \code{('CPython', 'trunk', '45313:45315')}.
+
+This information is also available to C extensions via the
+\cfunction{Py_GetBuildInfo()} function that returns a
+string of build information like this:
+\code{"trunk:45355:45356M, Apr 13 2006, 07:42:19"}.
+(Contributed by Barry Warsaw.)
\item The \class{TarFile} class in the \module{tarfile} module now has
an \method{extractall()} method that extracts all members from the
%======================================================================
% whole new modules get described in subsections here
+%======================================================================
\subsection{The ctypes package}
The \module{ctypes} package, written by Thomas Heller, has been added
Python wrappers atop a library accessed through \module{ctypes} instead
of extension modules, now that \module{ctypes} is included with core Python.
-% XXX write introduction
-
\begin{seealso}
\seeurl{http://starship.python.net/crew/theller/ctypes/}
\end{seealso}
+
+%======================================================================
\subsection{The ElementTree package}
A subset of Fredrik Lundh's ElementTree library for processing XML has
\end{seealso}
+%======================================================================
\subsection{The hashlib package}
A new \module{hashlib} module has been added to replace the
This module was contributed by Gregory P. Smith.
+%======================================================================
\subsection{The sqlite3 package}
The pysqlite module (\url{http://www.pysqlite.org}), a wrapper for the
add and remove elements, and \cfunction{PySet_Contains} and
\cfunction{PySet_Size} to examine the set's state.
+\item C code can now obtain information about the exact revision
+of the Python interpreter by calling the
+\cfunction{Py_GetBuildInfo()} function that returns a
+string of build information like this:
+\code{"trunk:45355:45356M, Apr 13 2006, 07:42:19"}.
+(Contributed by Barry Warsaw.)
+
\item The \cfunction{PyRange_New()} function was removed. It was
never documented, never used in the core code, and had dangerously lax
error checking.