blob: cc0fd868d5357bda42eb4da0d47e35609f0a3a94 [file] [log] [blame]
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00001\chapter{Introduction}
Fred Drake55fca541998-02-18 15:21:26 +00002\label{intro}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00003
Guido van Rossum233aa1d1995-03-30 16:01:15 +00004The ``Python library'' contains several different kinds of components.
5
6It contains data types that would normally be considered part of the
Guido van Rossum02ee80d1995-04-04 12:29:37 +00007``core'' of a language, such as numbers and lists. For these types,
8the Python language core defines the form of literals and places some
9constraints on their semantics, but does not fully define the
10semantics. (On the other hand, the language core does define
Guido van Rossum233aa1d1995-03-30 16:01:15 +000011syntactic properties like the spelling and priorities of operators.)
12
13The library also contains built-in functions and exceptions ---
14objects that can be used by all Python code without the need of an
Fred Drake55fca541998-02-18 15:21:26 +000015\keyword{import} statement. Some of these are defined by the core
Guido van Rossum233aa1d1995-03-30 16:01:15 +000016language, but many are not essential for the core semantics and are
17only described here.
18
19The bulk of the library, however, consists of a collection of modules.
20There are many ways to dissect this collection. Some modules are
21written in C and built in to the Python interpreter; others are
22written in Python and imported in source form. Some modules provide
23interfaces that are highly specific to Python, like printing a stack
24trace; some provide interfaces that are specific to particular
25operating systems, like socket I/O; others provide interfaces that are
26specific to a particular application domain, like the World-Wide Web.
27Some modules are avaiable in all versions and ports of Python; others
28are only available when the underlying system supports or requires
29them; yet others are available only when a particular configuration
30option was chosen at the time when Python was compiled and installed.
31
32This manual is organized ``from the inside out'': it first describes
33the built-in data types, then the built-in functions and exceptions,
34and finally the modules, grouped in chapters of related modules. The
35ordering of the chapters as well as the ordering of the modules within
36each chapter is roughly from most relevant to least important.
37
38This means that if you start reading this manual from the start, and
39skip to the next chapter when you get bored, you will get a reasonable
40overview of the available modules and application areas that are
41supported by the Python library. Of course, you don't \emph{have} to
42read it like a novel --- you can also browse the table of contents (in
Guido van Rossum02ee80d1995-04-04 12:29:37 +000043front of the manual), or look for a specific function, module or term
Guido van Rossum233aa1d1995-03-30 16:01:15 +000044in the index (in the back). And finally, if you enjoy learning about
45random subjects, you choose a random page number (see module
Fred Drake55fca541998-02-18 15:21:26 +000046\module{rand}) and read a section or two.
Guido van Rossum233aa1d1995-03-30 16:01:15 +000047
48Let the show begin!