|
4 | 4 | Introduction |
5 | 5 | ************ |
6 | 6 |
|
7 | | -The "Python library" contains several different kinds of components. |
8 | | - |
9 | | -It contains data types that would normally be considered part of the "core" of a |
10 | | -language, such as numbers and lists. For these types, the Python language core |
11 | | -defines the form of literals and places some constraints on their semantics, but |
12 | | -does not fully define the semantics. (On the other hand, the language core does |
13 | | -define syntactic properties like the spelling and priorities of operators.) |
14 | | - |
15 | | -The library also contains built-in functions and exceptions --- objects that can |
16 | | -be used by all Python code without the need of an :keyword:`import` statement. |
17 | | -Some of these are defined by the core language, but many are not essential for |
18 | | -the core semantics and are only described here. |
19 | | - |
20 | | -The bulk of the library, however, consists of a collection of modules. There are |
21 | | -many ways to dissect this collection. Some modules are written in C and built |
22 | | -in to the Python interpreter; others are written in Python and imported in |
| 7 | +Note: the built-in functions and classes (which can be used without an |
| 8 | +:keyword:`import` statement) are described in :ref:`builtin-index`. |
| 9 | + |
| 10 | +The Python standard library consists of a collection of modules. There are |
| 11 | +many ways to dissect this collection. Some modules are written in C and compiled |
| 12 | +into the Python interpreter; others are written in Python and imported in |
23 | 13 | source form. Some modules provide interfaces that are highly specific to |
24 | 14 | Python, like printing a stack trace; some provide interfaces that are specific |
25 | 15 | to particular operating systems, such as access to specific hardware; others |
26 | 16 | provide interfaces that are specific to a particular application domain, like |
27 | | -the World Wide Web. Some modules are available in all versions and ports of |
| 17 | +the web development. Some modules are available in all versions and ports of |
28 | 18 | Python; others are only available when the underlying system supports or |
29 | 19 | requires them; yet others are available only when a particular configuration |
30 | 20 | option was chosen at the time when Python was compiled and installed. |
31 | 21 |
|
32 | | -This manual is organized "from the inside out:" it first describes the built-in |
33 | | -functions, data types and exceptions, and finally the modules, grouped in |
34 | | -chapters of related modules. |
35 | | - |
36 | | -This means that if you start reading this manual from the start, and skip to the |
| 22 | +If you start reading this manual from the start, and skip to the |
37 | 23 | next chapter when you get bored, you will get a reasonable overview of the |
38 | 24 | available modules and application areas that are supported by the Python |
39 | 25 | library. Of course, you don't *have* to read it like a novel --- you can also |
40 | 26 | browse the table of contents (in front of the manual), or look for a specific |
41 | 27 | function, module or term in the index (in the back). And finally, if you enjoy |
42 | | -learning about random subjects, you choose a random page number (see module |
43 | | -:mod:`random`) and read a section or two. Regardless of the order in which you |
| 28 | +learning about random subjects, you choose a random page |
| 29 | +and read a section or two. Regardless of the order in which you |
44 | 30 | read the sections of this manual, it helps to start with chapter |
45 | 31 | :ref:`built-in-funcs`, as the remainder of the manual assumes familiarity with |
46 | 32 | this material. |
|
0 commit comments