1991-01-22 19:45:29 +08:00
|
|
|
% Format this file with latex.
|
|
|
|
|
1991-11-12 23:41:57 +08:00
|
|
|
\documentstyle[myformat]{report} % To preview with xdvi
|
|
|
|
|
|
|
|
% Support to leave changebars in...
|
|
|
|
\newcommand{\cbstart}{}
|
|
|
|
\newcommand{\cbend}{}
|
1991-01-22 19:45:29 +08:00
|
|
|
|
1991-01-25 21:26:13 +08:00
|
|
|
% A command to force the text after an item to start on a new line
|
|
|
|
\newcommand{\itembreak}{
|
|
|
|
\mbox{}\\*[0mm]
|
|
|
|
}
|
1991-01-22 19:45:29 +08:00
|
|
|
|
1991-02-19 20:53:17 +08:00
|
|
|
% A command to define a function item
|
|
|
|
\newcommand{\funcitem}[2]{\item[#1(#2)]}
|
|
|
|
|
1991-04-23 23:11:26 +09:00
|
|
|
% A command to define a data item
|
|
|
|
\newcommand{\dataitem}[1]{\item[#1]}
|
|
|
|
|
1991-02-19 20:53:17 +08:00
|
|
|
% A command to define an exception item
|
|
|
|
\newcommand{\excitem}[2]{
|
|
|
|
\item[#1 = {\tt '#2'}]
|
|
|
|
\itembreak
|
|
|
|
}
|
|
|
|
|
1991-01-22 19:45:29 +08:00
|
|
|
\title{\bf
|
1991-04-23 23:11:26 +09:00
|
|
|
Python Library Reference
|
1991-01-22 19:45:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
\author{
|
|
|
|
Guido van Rossum \\
|
|
|
|
Dept. CST, CWI, Kruislaan 413 \\
|
|
|
|
1098 SJ Amsterdam, The Netherlands \\
|
|
|
|
E-mail: {\tt guido@cwi.nl}
|
|
|
|
}
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\pagenumbering{roman}
|
|
|
|
|
|
|
|
\maketitle
|
|
|
|
|
|
|
|
\begin{abstract}
|
|
|
|
|
|
|
|
\noindent
|
1991-11-26 01:28:03 +08: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 19:45:29 +08:00
|
|
|
|
|
|
|
\end{abstract}
|
|
|
|
|
|
|
|
\pagebreak
|
|
|
|
|
|
|
|
\tableofcontents
|
|
|
|
|
|
|
|
\pagebreak
|
|
|
|
|
|
|
|
\pagenumbering{arabic}
|
|
|
|
|
1991-11-12 23:41:57 +08:00
|
|
|
\input{lib1.tex} % intro; built-in types, functions and exceptions
|
|
|
|
\input{lib2.tex} % built-in modules
|
|
|
|
\input{lib3.tex} % standard modules
|
|
|
|
\input{lib4.tex} % OS-dependent appendixes
|
|
|
|
\input{lib5.tex} % Graphics appendixes
|
1991-01-22 19:45:29 +08:00
|
|
|
|
|
|
|
\end{document}
|