source: vendor/python/2.5/Doc/lib/libintro.tex

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 2.8 KB
Line 
1\chapter{Introduction}
2\label{intro}
3
4The ``Python library'' contains several different kinds of components.
5
6It contains data types that would normally be considered part of the
7``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
11syntactic 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
15\keyword{import} statement. Some of these are defined by the core
16language, 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, such as access to specific hardware; others provide
26interfaces that are
27specific to a particular application domain, like the World Wide Web.
28Some modules are available in all versions and ports of Python; others
29are only available when the underlying system supports or requires
30them; yet others are available only when a particular configuration
31option was chosen at the time when Python was compiled and installed.
32
33This manual is organized ``from the inside out:'' it first describes
34the built-in data types, then the built-in functions and exceptions,
35and finally the modules, grouped in chapters of related modules. The
36ordering of the chapters as well as the ordering of the modules within
37each chapter is roughly from most relevant to least important.
38
39This means that if you start reading this manual from the start, and
40skip to the next chapter when you get bored, you will get a reasonable
41overview of the available modules and application areas that are
42supported by the Python library. Of course, you don't \emph{have} to
43read it like a novel --- you can also browse the table of contents (in
44front of the manual), or look for a specific function, module or term
45in the index (in the back). And finally, if you enjoy learning about
46random subjects, you choose a random page number (see module
47\refmodule{random}) and read a section or two. Regardless of the
48order in which you read the sections of this manual, it helps to start
49with chapter \ref{builtin}, ``Built-in Types, Exceptions and
50Functions,'' as the remainder of the manual assumes familiarity with
51this material.
52
53Let the show begin!
Note: See TracBrowser for help on using the repository browser.