1. Armin Rigo
  2. cpython-withatomic


cpython-withatomic / Doc / libpython.tex

The branch 'legacy-trunk' does not exist.
\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:


--- Access system specific parameters and functions.

--- Names for all built-in types.

\item[UserDict, UserList]
--- Class wrappers for dictionary and list objects.

--- All python's standard operators as built-in functions.

--- Print or retrieve a stack traceback.

--- Convert Python objects to streams of bytes and back.

--- Python object persistency.

--- Shallow and deep copy operations.

--- Convert Python objects to streams of bytes and back (with
different constraints).

--- New import (obsolete).

--- Access the implementation of the \code{import} statement.

--- Retrieve and submit parse trees from and to the runtime support

--- Test whether a string is a keyword in the Python language.

--- Code object services.

--- Data pretty printer.

--- Disassembler.

--- A standard way to reference site-specific modules.

--- A standard way to reference user-specific modules.

--- The set of built-in functions.

--- The environment where the top-level script is run.