1991-01-22 07:45:29 -04:00
|
|
|
% Format this file with latex.
|
|
|
|
|
1991-11-12 11:41:57 -04:00
|
|
|
\documentstyle[myformat]{report} % To preview with xdvi
|
|
|
|
|
1992-01-07 12:40:44 -04:00
|
|
|
% Underscores are not magic throughout this document
|
|
|
|
\catcode`_=12
|
|
|
|
|
|
|
|
% Dummy \cbstart and \cbend so I can leave the changebars in...
|
1991-11-12 11:41:57 -04:00
|
|
|
\newcommand{\cbstart}{}
|
|
|
|
\newcommand{\cbend}{}
|
1991-01-22 07:45:29 -04:00
|
|
|
|
1992-01-07 12:40:44 -04:00
|
|
|
% Define \itembreak: force the text after an item to start on a new line
|
1991-01-25 09:26:13 -04:00
|
|
|
\newcommand{\itembreak}{
|
1992-01-07 12:40:44 -04:00
|
|
|
\mbox{}
|
|
|
|
\\*[0mm]
|
|
|
|
}
|
|
|
|
|
|
|
|
% Define \itemjoin: some negative vspace to join two items together
|
|
|
|
\newcommand{\itemjoin}{
|
|
|
|
\mbox{}
|
|
|
|
\vspace{-\itemsep}
|
|
|
|
\vspace{-\parsep}
|
1991-01-25 09:26:13 -04:00
|
|
|
}
|
1991-01-22 07:45:29 -04:00
|
|
|
|
1992-01-07 12:40:44 -04:00
|
|
|
% Define \funcitem{func}{args}: define a function item
|
|
|
|
\newcommand{\funcitem}[2]{
|
|
|
|
\index{#1@{\tt#1}}
|
|
|
|
\item[{\tt #1(#2)}]
|
|
|
|
\
|
|
|
|
}
|
1991-02-19 08:53:17 -04:00
|
|
|
|
1992-01-07 12:40:44 -04:00
|
|
|
% Define \dataitem{name}: define a data item
|
|
|
|
\newcommand{\dataitem}[1]{
|
|
|
|
\index{#1@{\tt#1}}
|
|
|
|
\item[{\tt #1}]
|
|
|
|
\
|
|
|
|
}
|
1991-04-23 11:11:26 -03:00
|
|
|
|
1992-01-07 12:40:44 -04:00
|
|
|
% Define \excitem{name}{string}: define an exception item
|
1991-02-19 08:53:17 -04:00
|
|
|
\newcommand{\excitem}[2]{
|
1992-01-07 12:40:44 -04:00
|
|
|
\index{#1@{\tt#1}}
|
|
|
|
\item[{\tt #1 = '#2'}]
|
1991-02-19 08:53:17 -04:00
|
|
|
\itembreak
|
|
|
|
}
|
|
|
|
|
1991-01-22 07:45:29 -04:00
|
|
|
\title{\bf
|
1991-04-23 11:11:26 -03:00
|
|
|
Python Library Reference
|
1991-01-22 07:45:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
\author{
|
|
|
|
Guido van Rossum \\
|
|
|
|
Dept. CST, CWI, Kruislaan 413 \\
|
|
|
|
1098 SJ Amsterdam, The Netherlands \\
|
|
|
|
E-mail: {\tt guido@cwi.nl}
|
|
|
|
}
|
|
|
|
|
1992-01-07 12:40:44 -04:00
|
|
|
\makeindex
|
|
|
|
|
1991-01-22 07:45:29 -04:00
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\pagenumbering{roman}
|
|
|
|
|
|
|
|
\maketitle
|
|
|
|
|
|
|
|
\begin{abstract}
|
|
|
|
|
|
|
|
\noindent
|
1991-11-25 13:28:03 -04:00
|
|
|
This document describes the built-in types, exceptions and functions
|
|
|
|
and the standard modules that come with the Python system. It assumes
|
|
|
|
basic knowledge about the Python language. For an informal
|
|
|
|
introduction to the language, see the {\em Python Tutorial}. The {\em
|
|
|
|
Python Reference Manual} gives a more formal definition of the
|
|
|
|
language.
|
1991-01-22 07:45:29 -04:00
|
|
|
|
|
|
|
\end{abstract}
|
|
|
|
|
|
|
|
\pagebreak
|
|
|
|
|
|
|
|
\tableofcontents
|
|
|
|
|
|
|
|
\pagebreak
|
|
|
|
|
|
|
|
\pagenumbering{arabic}
|
|
|
|
|
1991-11-12 11:41:57 -04:00
|
|
|
\input{lib1.tex} % intro; built-in types, functions and exceptions
|
|
|
|
\input{lib2.tex} % built-in modules
|
|
|
|
\input{lib3.tex} % standard modules
|
1992-01-07 12:40:44 -04:00
|
|
|
\input{lib4.tex} % OS-dependent chapters
|
|
|
|
\input{lib5.tex} % Graphics chapters
|
|
|
|
\input{libindex.tex} % The index
|
1991-01-22 07:45:29 -04:00
|
|
|
|
|
|
|
\end{document}
|