cpython/Doc/libpython.tex

85 lines
1.8 KiB
TeX
Raw Normal View History

\chapter{Python Services}
\label{python}
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.
\item[UserDict]
--- Class wrapper for dictionary objects.
\item[UserList]
--- Class wrapper for list objects.
1997-03-27 10:56:18 -04:00
\item[operator]
--- All Python's standard operators as built-in functions.
\item[traceback]
--- Print or retrieve a stack traceback.
\item[pickle]
--- Convert Python objects to streams of bytes and back.
\item[cPickle]
--- Faster version of \module{pickle}, but not subclassable.
1998-01-21 01:04:52 -04:00
\item[copy_reg]
--- Register \module{pickle} support functions.
1998-01-21 01:04:52 -04: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).
\item[imp]
--- Access the implementation of the \keyword{import} statement.
1996-07-20 23:22:12 -03:00
\item[parser]
--- Retrieve and submit parse trees from and to the runtime support
environment.
\item[symbol]
--- Constants representing internal nodes of the parse tree.
\item[token]
--- Constants representing terminal nodes of the parse tree.
\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 18:43:02 -04:00
\item[site]
--- A standard way to reference site-specific modules.
\item[user]
--- A standard way to reference user-specific modules.
\item[__builtin__]
--- The set of built-in functions.
\item[__main__]
--- The environment where the top-level script is run.
\end{description}