blob: 101d33eec4cc88b433d0954c870f84fbb0ac053e [file] [log] [blame]
Guido van Rossum515834a1991-01-22 11:45:29 +00001% Format this file with latex.
2
Guido van Rossum19f1b821991-11-12 15:41:57 +00003\documentstyle[myformat]{report} % To preview with xdvi
4
Guido van Rossum1230c081992-01-07 16:40:44 +00005% Underscores are not magic throughout this document
6\catcode`_=12
7
8% Dummy \cbstart and \cbend so I can leave the changebars in...
Guido van Rossum19f1b821991-11-12 15:41:57 +00009\newcommand{\cbstart}{}
10\newcommand{\cbend}{}
Guido van Rossum515834a1991-01-22 11:45:29 +000011
Guido van Rossum1230c081992-01-07 16:40:44 +000012% Define \itembreak: force the text after an item to start on a new line
Guido van Rossumd38b7641991-01-25 13:26:13 +000013\newcommand{\itembreak}{
Guido van Rossum1230c081992-01-07 16:40:44 +000014\mbox{}
15\\*[0mm]
Guido van Rossumd38b7641991-01-25 13:26:13 +000016}
Guido van Rossum515834a1991-01-22 11:45:29 +000017
Guido van Rossum1230c081992-01-07 16:40:44 +000018% Define \itemjoin: some negative vspace to join two items together
19\newcommand{\itemjoin}{
20\mbox{}
21\vspace{-\itemsep}
22\vspace{-\parsep}
23}
Guido van Rossum8ec63501991-02-19 12:53:17 +000024
Guido van Rossum1230c081992-01-07 16:40:44 +000025% Define \funcitem{func}{args}: define a function item
26\newcommand{\funcitem}[2]{
27\index{#1@{\tt#1}}
28\item[{\tt #1(#2)}]
29\
30}
Guido van Rossuma9d5c221991-04-23 14:11:26 +000031
Guido van Rossum1230c081992-01-07 16:40:44 +000032% Define \dataitem{name}: define a data item
33\newcommand{\dataitem}[1]{
34\index{#1@{\tt#1}}
35\item[{\tt #1}]
36\
37}
38
39% Define \excitem{name}{string}: define an exception item
Guido van Rossum8ec63501991-02-19 12:53:17 +000040\newcommand{\excitem}[2]{
Guido van Rossum1230c081992-01-07 16:40:44 +000041\index{#1@{\tt#1}}
42\item[{\tt #1 = '#2'}]
Guido van Rossum8ec63501991-02-19 12:53:17 +000043\itembreak
44}
45
Guido van Rossum515834a1991-01-22 11:45:29 +000046\title{\bf
Guido van Rossuma9d5c221991-04-23 14:11:26 +000047 Python Library Reference
Guido van Rossum515834a1991-01-22 11:45:29 +000048}
49
50\author{
51 Guido van Rossum \\
52 Dept. CST, CWI, Kruislaan 413 \\
53 1098 SJ Amsterdam, The Netherlands \\
54 E-mail: {\tt guido@cwi.nl}
55}
56
Guido van Rossum1230c081992-01-07 16:40:44 +000057\makeindex
58
Guido van Rossum515834a1991-01-22 11:45:29 +000059\begin{document}
60
61\pagenumbering{roman}
62
63\maketitle
64
65\begin{abstract}
66
67\noindent
Guido van Rossum481ae681991-11-25 17:28:03 +000068This document describes the built-in types, exceptions and functions
69and the standard modules that come with the Python system. It assumes
70basic knowledge about the Python language. For an informal
71introduction to the language, see the {\em Python Tutorial}. The {\em
72Python Reference Manual} gives a more formal definition of the
73language.
Guido van Rossum515834a1991-01-22 11:45:29 +000074
75\end{abstract}
76
77\pagebreak
78
79\tableofcontents
80
81\pagebreak
82
83\pagenumbering{arabic}
84
Guido van Rossum19f1b821991-11-12 15:41:57 +000085\input{lib1.tex} % intro; built-in types, functions and exceptions
86\input{lib2.tex} % built-in modules
87\input{lib3.tex} % standard modules
Guido van Rossum1230c081992-01-07 16:40:44 +000088\input{lib4.tex} % OS-dependent chapters
89\input{lib5.tex} % Graphics chapters
90\input{libindex.tex} % The index
Guido van Rossum515834a1991-01-22 11:45:29 +000091
92\end{document}