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 | 1c974db | 1998-02-11 22:36:17 +0000 | [diff] [blame] | 15 | \item[UserDict] |
| 16 | \item[UserList] |
Guido van Rossum | 7f3b042 | 1997-03-27 14:56:18 +0000 | [diff] [blame] | 17 | --- Class wrappers for dictionary and list objects. |
| 18 | |
Guido van Rossum | e084f0b | 1997-11-20 21:03:33 +0000 | [diff] [blame] | 19 | \item[operator] |
| 20 | --- All python's standard operators as built-in functions. |
| 21 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 22 | \item[traceback] |
| 23 | --- Print or retrieve a stack traceback. |
| 24 | |
| 25 | \item[pickle] |
| 26 | --- Convert Python objects to streams of bytes and back. |
| 27 | |
Fred Drake | 0f35495 | 1998-01-21 05:04:52 +0000 | [diff] [blame] | 28 | \item[copy_reg] |
| 29 | --- Register \code{pickle} support functions. |
| 30 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 31 | \item[shelve] |
| 32 | --- Python object persistency. |
| 33 | |
| 34 | \item[copy] |
| 35 | --- Shallow and deep copy operations. |
| 36 | |
| 37 | \item[marshal] |
| 38 | --- Convert Python objects to streams of bytes and back (with |
| 39 | different constraints). |
| 40 | |
| 41 | \item[imp] |
| 42 | --- Access the implementation of the \code{import} statement. |
| 43 | |
Guido van Rossum | c4452fd | 1998-02-11 22:32:23 +0000 | [diff] [blame] | 44 | \item[ni] |
| 45 | --- New import (obsolete). |
| 46 | |
Guido van Rossum | 3317e63 | 1996-07-21 02:22:12 +0000 | [diff] [blame] | 47 | \item[parser] |
| 48 | --- Retrieve and submit parse trees from and to the runtime support |
| 49 | environment. |
| 50 | |
Guido van Rossum | 1c974db | 1998-02-11 22:36:17 +0000 | [diff] [blame] | 51 | \item[symbol] |
| 52 | --- Constants representing internal nodes of the parse tree. |
| 53 | |
| 54 | \item[token] |
| 55 | --- Constants representing terminal nodes of the parse tree. |
| 56 | |
Guido van Rossum | e084f0b | 1997-11-20 21:03:33 +0000 | [diff] [blame] | 57 | \item[keyword] |
| 58 | --- Test whether a string is a keyword in the Python language. |
| 59 | |
| 60 | \item[code] |
| 61 | --- Code object services. |
| 62 | |
| 63 | \item[pprint] |
| 64 | --- Data pretty printer. |
| 65 | |
| 66 | \item[dis] |
| 67 | --- Disassembler. |
| 68 | |
Guido van Rossum | fc5ee0f | 1997-04-03 22:43:02 +0000 | [diff] [blame] | 69 | \item[site] |
| 70 | --- A standard way to reference site-specific modules. |
| 71 | |
Guido van Rossum | e084f0b | 1997-11-20 21:03:33 +0000 | [diff] [blame] | 72 | \item[user] |
| 73 | --- A standard way to reference user-specific modules. |
| 74 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 75 | \item[__builtin__] |
| 76 | --- The set of built-in functions. |
| 77 | |
| 78 | \item[__main__] |
| 79 | --- The environment where the top-level script is run. |
| 80 | |
| 81 | \end{description} |