1995-03-28 13:35:14 +00:00
|
|
|
\chapter{Python Services}
|
|
|
|
|
|
|
|
The modules described in this chapter provide a wide range of services
|
|
|
|
related to the Python interpreter and its interaction with its
|
|
|
|
environment. Here's an overview:
|
|
|
|
|
|
|
|
\begin{description}
|
|
|
|
|
|
|
|
\item[sys]
|
|
|
|
--- Access system specific parameters and functions.
|
|
|
|
|
|
|
|
\item[types]
|
|
|
|
--- Names for all built-in types.
|
|
|
|
|
1997-03-27 14:56:18 +00:00
|
|
|
\item[UserDict, UserList]
|
|
|
|
--- Class wrappers for dictionary and list objects.
|
|
|
|
|
1997-11-20 21:03:33 +00:00
|
|
|
\item[operator]
|
|
|
|
--- All python's standard operators as built-in functions.
|
|
|
|
|
1995-03-28 13:35:14 +00:00
|
|
|
\item[traceback]
|
|
|
|
--- Print or retrieve a stack traceback.
|
|
|
|
|
|
|
|
\item[pickle]
|
|
|
|
--- Convert Python objects to streams of bytes and back.
|
|
|
|
|
1998-01-21 05:04:52 +00:00
|
|
|
\item[copy_reg]
|
|
|
|
--- Register \code{pickle} support functions.
|
|
|
|
|
1995-03-28 13:35:14 +00:00
|
|
|
\item[shelve]
|
|
|
|
--- Python object persistency.
|
|
|
|
|
|
|
|
\item[copy]
|
|
|
|
--- Shallow and deep copy operations.
|
|
|
|
|
|
|
|
\item[marshal]
|
|
|
|
--- Convert Python objects to streams of bytes and back (with
|
|
|
|
different constraints).
|
|
|
|
|
1997-11-20 21:03:33 +00:00
|
|
|
\item[ni]
|
|
|
|
--- New import (obsolete).
|
|
|
|
|
1995-03-28 13:35:14 +00:00
|
|
|
\item[imp]
|
|
|
|
--- Access the implementation of the \code{import} statement.
|
|
|
|
|
1996-07-21 02:22:12 +00:00
|
|
|
\item[parser]
|
|
|
|
--- Retrieve and submit parse trees from and to the runtime support
|
|
|
|
environment.
|
|
|
|
|
1997-11-20 21:03:33 +00:00
|
|
|
\item[keyword]
|
|
|
|
--- Test whether a string is a keyword in the Python language.
|
|
|
|
|
|
|
|
\item[code]
|
|
|
|
--- Code object services.
|
|
|
|
|
|
|
|
\item[pprint]
|
|
|
|
--- Data pretty printer.
|
|
|
|
|
|
|
|
\item[dis]
|
|
|
|
--- Disassembler.
|
|
|
|
|
1997-04-03 22:43:02 +00:00
|
|
|
\item[site]
|
|
|
|
--- A standard way to reference site-specific modules.
|
|
|
|
|
1997-11-20 21:03:33 +00:00
|
|
|
\item[user]
|
|
|
|
--- A standard way to reference user-specific modules.
|
|
|
|
|
1995-03-28 13:35:14 +00:00
|
|
|
\item[__builtin__]
|
|
|
|
--- The set of built-in functions.
|
|
|
|
|
|
|
|
\item[__main__]
|
|
|
|
--- The environment where the top-level script is run.
|
|
|
|
|
|
|
|
\end{description}
|