1992-04-06 11:04:04 -03:00
|
|
|
\documentstyle[twoside,11pt,myformat]{report}
|
1991-02-19 08:53:17 -04:00
|
|
|
|
1995-02-28 13:14:32 -04:00
|
|
|
% NOTE: this file controls which chapters/sections of the library
|
|
|
|
% manual are actually printed. It is easy to customize your manual
|
|
|
|
% by commenting out sections that you're not interested in.
|
|
|
|
|
1994-08-01 09:22:53 -03:00
|
|
|
\title{Python Library Reference}
|
1991-01-22 07:45:29 -04:00
|
|
|
|
1994-10-06 07:29:26 -03:00
|
|
|
\input{boilerplate}
|
1994-08-01 09:22:53 -03:00
|
|
|
|
|
|
|
\makeindex % tell \index to actually write the .idx file
|
1993-11-23 12:28:45 -04:00
|
|
|
|
1992-01-07 12:40:44 -04:00
|
|
|
|
1991-01-22 07:45:29 -04:00
|
|
|
\begin{document}
|
1994-08-01 09:22:53 -03:00
|
|
|
|
1991-01-22 07:45:29 -04:00
|
|
|
\pagenumbering{roman}
|
|
|
|
|
|
|
|
\maketitle
|
|
|
|
|
1994-10-06 07:29:26 -03:00
|
|
|
\input{copyright}
|
|
|
|
|
1991-01-22 07:45:29 -04:00
|
|
|
\begin{abstract}
|
|
|
|
|
|
|
|
\noindent
|
1995-03-30 12:01:33 -04:00
|
|
|
Python is an extensible, interpreted, object-oriented programming
|
|
|
|
language. It supports a wide range of applications, from simple text
|
|
|
|
processing scripts to interactive WWW browsers.
|
|
|
|
|
|
|
|
While the {\em Python Reference Manual} describes the exact syntax and
|
|
|
|
semantics of the language, it does not describe the standard library
|
|
|
|
that is distributed with the language, and which greatly enhances its
|
|
|
|
immediate usability. This library contains built-in modules (written
|
|
|
|
in C) that provide access to system functionality such as file I/O
|
|
|
|
that would otherwise be inaccessible to Python programmers, as well as
|
|
|
|
modules written in Python that provide standardized solutions for many
|
|
|
|
problems that occur in everyday programming. Some of these modules
|
|
|
|
are explicitly designed to encourage and enhance the portability of
|
|
|
|
Python programs.
|
|
|
|
|
|
|
|
This library reference manual documents Python's standard library, as
|
|
|
|
well as many optional library modules (which may or may not be
|
|
|
|
available, depending on whether the underlying platform supports them
|
|
|
|
and on the configuration choices made at compile time). It also
|
|
|
|
documents the standard types of the language and its built-in
|
|
|
|
functions and exceptions, many of which are not or incompletely
|
|
|
|
documented in the Reference Manual.
|
|
|
|
|
|
|
|
This manual assumes basic knowledge about the Python language. For an
|
|
|
|
informal introduction to Python, see the {\em Python Tutorial}; the
|
|
|
|
Python Reference Manual remains the highest authority on syntactic and
|
|
|
|
semantic questions. Finally, the manual entitled {\em Extending and
|
|
|
|
Embedding the Python Interpreter} describes how to add new extensions
|
|
|
|
to Python and how to embed it in other applications.
|
1991-01-22 07:45:29 -04:00
|
|
|
|
|
|
|
\end{abstract}
|
|
|
|
|
|
|
|
\pagebreak
|
|
|
|
|
1992-01-29 10:46:35 -04:00
|
|
|
{
|
|
|
|
\parskip = 0mm
|
1991-01-22 07:45:29 -04:00
|
|
|
\tableofcontents
|
1992-01-29 10:46:35 -04:00
|
|
|
}
|
1991-01-22 07:45:29 -04:00
|
|
|
|
|
|
|
\pagebreak
|
|
|
|
|
|
|
|
\pagenumbering{arabic}
|
1992-03-24 09:34:33 -04:00
|
|
|
|
1994-08-01 09:22:53 -03:00
|
|
|
% Chapter title:
|
|
|
|
|
|
|
|
\input{libintro} % Introduction
|
|
|
|
|
|
|
|
\input{libobjs} % Built-in Types, Exceptions and Functions
|
|
|
|
\input{libtypes}
|
|
|
|
\input{libexcs}
|
|
|
|
\input{libfuncs}
|
|
|
|
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libpython} % Python Services
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libsys}
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libtypes2} % types is already taken :-(
|
|
|
|
\input{libtraceback}
|
|
|
|
\input{libpickle}
|
|
|
|
\input{libshelve}
|
|
|
|
\input{libcopy}
|
|
|
|
\input{libmarshal}
|
1995-01-04 15:17:34 -04:00
|
|
|
\input{libimp}
|
1995-10-11 14:32:29 -03:00
|
|
|
\input{libparser}
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libbltin} % really __builtin__
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libmain} % really __main__
|
1995-03-28 09:35:14 -04:00
|
|
|
|
|
|
|
\input{libstrings} % String Services
|
|
|
|
\input{libstring}
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libregex}
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libregsub}
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libstruct}
|
|
|
|
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libmisc} % Miscellaneous Services
|
|
|
|
\input{libmath}
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{librand}
|
|
|
|
\input{libwhrandom}
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libarray}
|
1995-03-02 08:38:39 -04:00
|
|
|
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{liballos} % Generic Operating System Services
|
|
|
|
\input{libos}
|
|
|
|
\input{libtime}
|
|
|
|
\input{libgetopt}
|
|
|
|
\input{libtempfile}
|
1995-03-02 08:38:39 -04:00
|
|
|
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libsomeos} % Optional Operating System Services
|
|
|
|
\input{libsignal}
|
|
|
|
\input{libsocket}
|
|
|
|
\input{libselect}
|
|
|
|
\input{libthread}
|
1994-08-01 09:22:53 -03:00
|
|
|
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libunix} % UNIX Specific Services
|
|
|
|
\input{libposix}
|
|
|
|
\input{libppath} % == posixpath
|
|
|
|
\input{libpwd}
|
|
|
|
\input{libgrp}
|
1996-04-10 13:18:20 -03:00
|
|
|
\input{libcrypt}
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libdbm}
|
1994-08-08 05:03:24 -03:00
|
|
|
\input{libgdbm}
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libtermios}
|
|
|
|
\input{libfcntl}
|
1995-01-04 15:17:34 -04:00
|
|
|
\input{libposixfile}
|
1995-10-09 17:49:57 -03:00
|
|
|
\input{libsyslog}
|
1994-08-01 09:22:53 -03:00
|
|
|
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libpdb} % The Python Debugger
|
|
|
|
|
|
|
|
\input{libprofile} % The Python Profiler
|
|
|
|
|
|
|
|
\input{libwww} % Internet and WWW Services
|
1995-02-27 13:53:25 -04:00
|
|
|
\input{libcgi}
|
1995-03-22 11:48:46 -04:00
|
|
|
\input{liburllib}
|
|
|
|
\input{libhttplib}
|
1995-02-16 12:28:22 -04:00
|
|
|
\input{libftplib}
|
|
|
|
\input{libgopherlib}
|
|
|
|
\input{libnntplib}
|
|
|
|
\input{liburlparse}
|
1995-03-22 11:48:46 -04:00
|
|
|
\input{libhtmllib}
|
|
|
|
\input{libsgmllib}
|
|
|
|
\input{librfc822}
|
|
|
|
\input{libmimetools}
|
1995-08-29 08:30:24 -03:00
|
|
|
\input{libbinascii}
|
1995-02-16 12:28:22 -04:00
|
|
|
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libmm} % Multimedia Services
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libaudioop}
|
|
|
|
\input{libimageop}
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libaifc}
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libjpeg}
|
|
|
|
\input{librgbimg}
|
|
|
|
|
1995-03-28 09:35:14 -04:00
|
|
|
\input{libcrypto} % Cryptographic Services
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libmd5}
|
|
|
|
\input{libmpz}
|
|
|
|
\input{librotor}
|
|
|
|
|
|
|
|
%\input{libamoeba} % AMOEBA ONLY
|
|
|
|
|
1995-02-28 13:14:32 -04:00
|
|
|
\input{libmac} % MACINTOSH ONLY
|
1995-03-01 11:38:16 -04:00
|
|
|
\input{libctb}
|
|
|
|
\input{libmacconsole}
|
1995-03-07 06:12:11 -04:00
|
|
|
\input{libmacdnr}
|
1995-03-01 11:38:16 -04:00
|
|
|
\input{libmacfs}
|
1995-08-14 10:40:05 -03:00
|
|
|
\input{libmacos}
|
1995-10-10 11:43:20 -03:00
|
|
|
\input{libmacostools}
|
1995-03-01 11:38:16 -04:00
|
|
|
\input{libmactcp}
|
|
|
|
\input{libmacspeech}
|
1995-10-10 11:43:20 -03:00
|
|
|
\input{libmacui}
|
1994-08-01 09:22:53 -03:00
|
|
|
|
|
|
|
\input{libstdwin} % STDWIN ONLY
|
|
|
|
|
|
|
|
\input{libsgi} % SGI IRIX ONLY
|
|
|
|
\input{libal}
|
|
|
|
%\input{libaudio}
|
1995-03-28 07:56:52 -04:00
|
|
|
\input{libcd}
|
1994-08-01 09:22:53 -03:00
|
|
|
\input{libfl}
|
|
|
|
\input{libfm}
|
|
|
|
\input{libgl}
|
|
|
|
\input{libimgfile}
|
|
|
|
%\input{libpanel}
|
|
|
|
|
|
|
|
\input{libsun} % SUNOS ONLY
|
|
|
|
|
|
|
|
\input{lib.ind} % Index
|
1991-01-22 07:45:29 -04:00
|
|
|
|
|
|
|
\end{document}
|