Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 1 | \chapter{Python Services} |
| 2 | |
| 3 | The modules described in this chapter provide a wide range of services |
| 4 | related to the Python interpreter and its interaction with its |
| 5 | environment. Here's an overview: |
| 6 | |
| 7 | \begin{description} |
| 8 | |
| 9 | \item[sys] |
| 10 | --- Access system specific parameters and functions. |
| 11 | |
| 12 | \item[types] |
| 13 | --- Names for all built-in types. |
| 14 | |
Guido van Rossum | 7f3b042 | 1997-03-27 14:56:18 +0000 | [diff] [blame] | 15 | \item[UserDict, UserList] |
| 16 | --- Class wrappers for dictionary and list objects. |
| 17 | |
Guido van Rossum | e084f0b | 1997-11-20 21:03:33 +0000 | [diff] [blame] | 18 | \item[operator] |
| 19 | --- All python's standard operators as built-in functions. |
| 20 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 21 | \item[traceback] |
| 22 | --- Print or retrieve a stack traceback. |
| 23 | |
| 24 | \item[pickle] |
| 25 | --- Convert Python objects to streams of bytes and back. |
| 26 | |
Fred Drake | 0f35495 | 1998-01-21 05:04:52 +0000 | [diff] [blame^] | 27 | \item[copy_reg] |
| 28 | --- Register \code{pickle} support functions. |
| 29 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 30 | \item[shelve] |
| 31 | --- Python object persistency. |
| 32 | |
| 33 | \item[copy] |
| 34 | --- Shallow and deep copy operations. |
| 35 | |
| 36 | \item[marshal] |
| 37 | --- Convert Python objects to streams of bytes and back (with |
| 38 | different constraints). |
| 39 | |
Guido van Rossum | e084f0b | 1997-11-20 21:03:33 +0000 | [diff] [blame] | 40 | \item[ni] |
| 41 | --- New import (obsolete). |
| 42 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 43 | \item[imp] |
| 44 | --- Access the implementation of the \code{import} statement. |
| 45 | |
Guido van Rossum | 3317e63 | 1996-07-21 02:22:12 +0000 | [diff] [blame] | 46 | \item[parser] |
| 47 | --- Retrieve and submit parse trees from and to the runtime support |
| 48 | environment. |
| 49 | |
Guido van Rossum | e084f0b | 1997-11-20 21:03:33 +0000 | [diff] [blame] | 50 | \item[keyword] |
| 51 | --- Test whether a string is a keyword in the Python language. |
| 52 | |
| 53 | \item[code] |
| 54 | --- Code object services. |
| 55 | |
| 56 | \item[pprint] |
| 57 | --- Data pretty printer. |
| 58 | |
| 59 | \item[dis] |
| 60 | --- Disassembler. |
| 61 | |
Guido van Rossum | fc5ee0f | 1997-04-03 22:43:02 +0000 | [diff] [blame] | 62 | \item[site] |
| 63 | --- A standard way to reference site-specific modules. |
| 64 | |
Guido van Rossum | e084f0b | 1997-11-20 21:03:33 +0000 | [diff] [blame] | 65 | \item[user] |
| 66 | --- A standard way to reference user-specific modules. |
| 67 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 68 | \item[__builtin__] |
| 69 | --- The set of built-in functions. |
| 70 | |
| 71 | \item[__main__] |
| 72 | --- The environment where the top-level script is run. |
| 73 | |
| 74 | \end{description} |