blob: 4aee15b07b9cd5a3d55b3b4c11a70b4b6e4cf3dd [file] [log] [blame]
Fred Drakedca87921998-01-13 16:53:23 +00001\documentclass[twoside,openright]{report}
Fred Drake1f8449a1998-01-09 05:36:43 +00002\usepackage{myformat}
Guido van Rossum19f1b821991-11-12 15:41:57 +00003
Guido van Rossum86751151995-02-28 17:14:32 +00004% NOTE: this file controls which chapters/sections of the library
5% manual are actually printed. It is easy to customize your manual
6% by commenting out sections that you're not interested in.
7
Guido van Rossum6938f061994-08-01 12:22:53 +00008\title{Python Library Reference}
Guido van Rossum515834a1991-01-22 11:45:29 +00009
Guido van Rossum16cd7f91994-10-06 10:29:26 +000010\input{boilerplate}
Guido van Rossum83eb9621993-11-23 16:28:45 +000011
Guido van Rossum6938f061994-08-01 12:22:53 +000012\makeindex % tell \index to actually write the .idx file
13
Guido van Rossum1230c081992-01-07 16:40:44 +000014
Guido van Rossum515834a1991-01-22 11:45:29 +000015\begin{document}
Guido van Rossum6938f061994-08-01 12:22:53 +000016
Guido van Rossum515834a1991-01-22 11:45:29 +000017\maketitle
18
Guido van Rossum16cd7f91994-10-06 10:29:26 +000019\input{copyright}
20
Guido van Rossum515834a1991-01-22 11:45:29 +000021\begin{abstract}
22
23\noindent
Guido van Rossum2ddd9781995-03-30 16:01:33 +000024Python is an extensible, interpreted, object-oriented programming
25language. It supports a wide range of applications, from simple text
26processing scripts to interactive WWW browsers.
27
Fred Drakeb2c6ef81997-12-18 15:56:05 +000028While the \emph{Python Reference Manual} describes the exact syntax and
Guido van Rossum2ddd9781995-03-30 16:01:33 +000029semantics of the language, it does not describe the standard library
30that is distributed with the language, and which greatly enhances its
31immediate usability. This library contains built-in modules (written
32in C) that provide access to system functionality such as file I/O
33that would otherwise be inaccessible to Python programmers, as well as
34modules written in Python that provide standardized solutions for many
35problems that occur in everyday programming. Some of these modules
36are explicitly designed to encourage and enhance the portability of
37Python programs.
38
39This library reference manual documents Python's standard library, as
40well as many optional library modules (which may or may not be
41available, depending on whether the underlying platform supports them
42and on the configuration choices made at compile time). It also
43documents the standard types of the language and its built-in
44functions and exceptions, many of which are not or incompletely
45documented in the Reference Manual.
46
47This manual assumes basic knowledge about the Python language. For an
Fred Drakeb2c6ef81997-12-18 15:56:05 +000048informal introduction to Python, see the \emph{Python Tutorial}; the
Fred Drakeb660b631998-01-16 16:34:34 +000049\emph{Python Reference Manual} remains the highest authority on
50syntactic and semantic questions. Finally, the manual entitled
51\emph{Extending and Embedding the Python Interpreter} describes how to
52add new extensions to Python and how to embed it in other applications.
Guido van Rossum515834a1991-01-22 11:45:29 +000053
54\end{abstract}
55
Fred Drake4d4f9e71998-01-13 22:25:02 +000056\tableofcontents
Guido van Rossum515834a1991-01-22 11:45:29 +000057
Guido van Rossum6938f061994-08-01 12:22:53 +000058 % Chapter title:
59
60\input{libintro} % Introduction
61
62\input{libobjs} % Built-in Types, Exceptions and Functions
63\input{libtypes}
64\input{libexcs}
65\input{libfuncs}
66
Guido van Rossumecde7811995-03-28 13:35:14 +000067\input{libpython} % Python Services
Guido van Rossum6938f061994-08-01 12:22:53 +000068\input{libsys}
Guido van Rossumecde7811995-03-28 13:35:14 +000069\input{libtypes2} % types is already taken :-(
Guido van Rossum36764b81997-08-30 20:02:25 +000070\input{libuserdict}
Guido van Rossum61ed4db1996-12-06 21:22:41 +000071\input{liboperator}
Guido van Rossumecde7811995-03-28 13:35:14 +000072\input{libtraceback}
Guido van Rossumd1883581995-02-15 15:53:08 +000073\input{libpickle}
Fred Drake2d754431998-01-21 04:58:39 +000074\input{libcopyreg}
Guido van Rossumd1883581995-02-15 15:53:08 +000075\input{libshelve}
76\input{libcopy}
Guido van Rossumecde7811995-03-28 13:35:14 +000077\input{libmarshal}
78\input{libimp}
Guido van Rossum0fcbe8d1997-07-17 16:27:42 +000079\input{libni}
Guido van Rossumca814701995-10-11 17:32:29 +000080\input{libparser}
Fred Drakeb0df5671998-02-18 15:59:13 +000081\input{libsymbol}
82\input{libtoken}
Fred Drake14bf3411997-10-06 21:40:48 +000083\input{libkeyword}
Guido van Rossum61c27031997-07-18 21:08:07 +000084\input{libcode}
Fred Drake00eb96a1997-10-06 21:26:03 +000085\input{libpprint}
Guido van Rossumeae121e1997-11-18 15:11:47 +000086\input{libdis}
Guido van Rossum571391b1997-04-03 22:41:49 +000087\input{libsite}
Guido van Rossum36764b81997-08-30 20:02:25 +000088\input{libuser}
Guido van Rossumecde7811995-03-28 13:35:14 +000089\input{libbltin} % really __builtin__
90\input{libmain} % really __main__
91
92\input{libstrings} % String Services
93\input{libstring}
Guido van Rossum9cb64801997-12-29 20:01:55 +000094\input{libre}
Guido van Rossumecde7811995-03-28 13:35:14 +000095\input{libregex}
96\input{libregsub}
97\input{libstruct}
Guido van Rossumcda3d7d1997-03-03 16:01:21 +000098\input{libstrio}
Guido van Rossum3486f271996-12-12 17:02:21 +000099\input{libsoundex}
Guido van Rossumecde7811995-03-28 13:35:14 +0000100
101\input{libmisc} % Miscellaneous Services
102\input{libmath}
Guido van Rossum84057a31997-07-17 16:15:18 +0000103\input{libcmath}
Guido van Rossumecde7811995-03-28 13:35:14 +0000104\input{libwhrandom}
Guido van Rossum571391b1997-04-03 22:41:49 +0000105\input{librandom}
106\input{librand}
Guido van Rossumecde7811995-03-28 13:35:14 +0000107\input{libarray}
108
109\input{liballos} % Generic Operating System Services
110\input{libos}
111\input{libtime}
112\input{libgetopt}
Guido van Rossumdc46c7f1995-03-01 15:38:16 +0000113\input{libtempfile}
Guido van Rossumc0fcc441996-07-30 18:20:01 +0000114\input{liberrno}
Guido van Rossumb6a80261997-03-25 22:09:18 +0000115\input{libglob}
Guido van Rossume76b7a81997-04-27 21:25:52 +0000116\input{libfnmatch}
Guido van Rossumbc12f781997-11-20 21:04:27 +0000117\input{liblocale}
Guido van Rossumecde7811995-03-28 13:35:14 +0000118
119\input{libsomeos} % Optional Operating System Services
120\input{libsignal}
121\input{libsocket}
122\input{libselect}
123\input{libthread}
Barry Warsaw17c8e781997-11-20 19:54:16 +0000124\input{libqueue}
Guido van Rossum571391b1997-04-03 22:41:49 +0000125\input{libanydbm}
126\input{libwhichdb}
Guido van Rossumdfb41201997-04-30 19:40:10 +0000127\input{libzlib}
Guido van Rossum0fcbe8d1997-07-17 16:27:42 +0000128\input{libgzip}
Guido van Rossumecde7811995-03-28 13:35:14 +0000129
130\input{libunix} % UNIX Specific Services
131\input{libposix}
132\input{libppath} % == posixpath
133\input{libpwd}
134\input{libgrp}
Guido van Rossum5c6e3731996-04-10 16:18:20 +0000135\input{libcrypt}
Guido van Rossumecde7811995-03-28 13:35:14 +0000136\input{libdbm}
137\input{libgdbm}
138\input{libtermios}
139\input{libfcntl}
140\input{libposixfile}
Guido van Rossum3c7b2dc1996-12-18 18:37:05 +0000141\input{libresource}
Guido van Rossumfbe34fa1995-10-09 20:49:57 +0000142\input{libsyslog}
Guido van Rossum3dd68d31996-12-31 02:24:54 +0000143\input{libstat}
Fred Drake4fd12921997-06-12 16:05:46 +0000144\input{libcommands}
Guido van Rossumdf804f81995-03-02 12:38:39 +0000145
146\input{libpdb} % The Python Debugger
147
148\input{libprofile} % The Python Profiler
Guido van Rossum6938f061994-08-01 12:22:53 +0000149
Guido van Rossumecde7811995-03-28 13:35:14 +0000150\input{libwww} % Internet and WWW Services
Guido van Rossuma12ef941995-02-27 17:53:25 +0000151\input{libcgi}
Guido van Rossumcca8d2b1995-03-22 15:48:46 +0000152\input{liburllib}
153\input{libhttplib}
Guido van Rossum817a8421995-02-16 16:28:22 +0000154\input{libftplib}
155\input{libgopherlib}
Guido van Rossum817a8421995-02-16 16:28:22 +0000156\input{libnntplib}
Guido van Rossum817a8421995-02-16 16:28:22 +0000157\input{liburlparse}
Guido van Rossumcca8d2b1995-03-22 15:48:46 +0000158\input{libsgmllib}
Fred Drakee1980ed1996-10-09 14:36:54 +0000159\input{libhtmllib}
Guido van Rossumeae121e1997-11-18 15:11:47 +0000160\input{libxmllib}
Fred Drake53e84d51996-10-08 21:54:41 +0000161\input{libformatter}
Guido van Rossumcca8d2b1995-03-22 15:48:46 +0000162\input{librfc822}
163\input{libmimetools}
Jack Jansen4549b131995-08-29 11:30:24 +0000164\input{libbinascii}
Guido van Rossum40006cf1996-08-19 22:58:03 +0000165\input{libxdrlib}
Guido van Rossumb6a80261997-03-25 22:09:18 +0000166\input{libmailcap}
Guido van Rossume76b7a81997-04-27 21:25:52 +0000167\input{libbase64}
168\input{libquopri}
Guido van Rossum6181e001997-05-19 19:55:16 +0000169\input{libsocksvr}
Guido van Rossume5bb7901997-06-02 17:35:51 +0000170\input{libmailbox}
Guido van Rossumfd16ca41997-07-30 22:05:07 +0000171\input{libmimify}
Guido van Rossum9cb64801997-12-29 20:01:55 +0000172\input{libbasehttp}
Guido van Rossum817a8421995-02-16 16:28:22 +0000173
Guido van Rossum6e308d71996-10-22 01:11:53 +0000174\input{librestricted}
175\input{librexec}
176\input{libbastion}
177
Guido van Rossumecde7811995-03-28 13:35:14 +0000178\input{libmm} % Multimedia Services
Guido van Rossum6938f061994-08-01 12:22:53 +0000179\input{libaudioop}
180\input{libimageop}
Guido van Rossumecde7811995-03-28 13:35:14 +0000181\input{libaifc}
Guido van Rossum6938f061994-08-01 12:22:53 +0000182\input{libjpeg}
183\input{librgbimg}
Guido van Rossum40006cf1996-08-19 22:58:03 +0000184\input{libimghdr}
Guido van Rossum6938f061994-08-01 12:22:53 +0000185
Guido van Rossumecde7811995-03-28 13:35:14 +0000186\input{libcrypto} % Cryptographic Services
Guido van Rossum6938f061994-08-01 12:22:53 +0000187\input{libmd5}
188\input{libmpz}
189\input{librotor}
190
191%\input{libamoeba} % AMOEBA ONLY
192
Guido van Rossum86751151995-02-28 17:14:32 +0000193\input{libmac} % MACINTOSH ONLY
Guido van Rossumdc46c7f1995-03-01 15:38:16 +0000194\input{libctb}
195\input{libmacconsole}
Guido van Rossum85c4ff21995-03-07 10:12:11 +0000196\input{libmacdnr}
Guido van Rossumdc46c7f1995-03-01 15:38:16 +0000197\input{libmacfs}
Guido van Rossume229d861997-08-18 15:14:26 +0000198\input{libmacic}
Jack Jansenebed45f1995-08-14 13:40:05 +0000199\input{libmacos}
Jack Jansenda53c521995-10-10 14:43:20 +0000200\input{libmacostools}
Guido van Rossumdc46c7f1995-03-01 15:38:16 +0000201\input{libmactcp}
202\input{libmacspeech}
Jack Jansenda53c521995-10-10 14:43:20 +0000203\input{libmacui}
Guido van Rossum6938f061994-08-01 12:22:53 +0000204
Guido van Rossume5bb7901997-06-02 17:35:51 +0000205%\input{libstdwin} % STDWIN ONLY
Guido van Rossum6938f061994-08-01 12:22:53 +0000206
207\input{libsgi} % SGI IRIX ONLY
208\input{libal}
Sjoerd Mullenderffd6de11995-03-28 11:56:52 +0000209\input{libcd}
Guido van Rossum6938f061994-08-01 12:22:53 +0000210\input{libfl}
211\input{libfm}
212\input{libgl}
213\input{libimgfile}
214%\input{libpanel}
215
216\input{libsun} % SUNOS ONLY
217
Guido van Rossum612316f1997-03-14 04:12:52 +0000218\input{libundoc}
219
Fred Drake0b1337d1998-01-02 02:59:09 +0000220\renewcommand{\indexname}{Module Index}
221\input{modules.ind} % Module Index
222
223\renewcommand{\indexname}{Index}
Guido van Rossum6938f061994-08-01 12:22:53 +0000224\input{lib.ind} % Index
Guido van Rossum515834a1991-01-22 11:45:29 +0000225
226\end{document}