cpython/Doc/lib/lib.tex

380 lines
8.6 KiB
TeX
Raw Normal View History

\documentclass{manual}
% 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.
\title{Python Library Reference}
1991-01-22 07:45:29 -04:00
\input{boilerplate}
\makeindex % tell \index to actually write the
% .idx file
\makemodindex % ... and the module index as well.
1992-01-07 12:40:44 -04:00
1991-01-22 07:45:29 -04:00
\begin{document}
1991-01-22 07:45:29 -04:00
\maketitle
\ifhtml
\chapter*{Front Matter\label{front}}
\fi
\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 Web browsers.
1995-03-30 12:01:33 -04:00
While the \citetitle[../ref/ref.html]{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.
1995-03-30 12:01:33 -04:00
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
\citetitle[../tut/tut.html]{Python Tutorial}; the
\citetitle[../ref/ref.html]{Python Reference Manual} remains the
highest authority on syntactic and semantic questions. Finally, the
manual entitled \citetitle[../ext/ext.html]{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}
\tableofcontents
1991-01-22 07:45:29 -04:00
% Chapter title:
\input{libintro} % Introduction
\input{libobjs} % Built-in Types, Exceptions and Functions
\input{libfuncs}
\input{libstdtypes}
\input{libexcs}
2003-01-01 16:34:00 -04:00
\input{libconsts}
\input{libpython} % Python Runtime Services
\input{libsys}
\input{libgc}
\input{libweakref}
\input{libfpectl}
\input{libatexit}
\input{libtypes}
\input{libuserdict}
\input{liboperator}
2001-02-28 19:02:20 -04:00
\input{libinspect}
\input{libtraceback}
\input{liblinecache}
\input{libpickle}
\input{libcopyreg} % really copy_reg
\input{libshelve}
\input{libcopy}
\input{libmarshal}
2000-12-19 02:01:23 -04:00
\input{libwarnings}
\input{libimp}
2002-12-23 12:53:59 -04:00
\input{libpkgutil}
1997-07-18 18:08:07 -03:00
\input{libcode}
1999-06-23 10:34:22 -03:00
\input{libcodeop}
\input{libpprint}
\input{librepr}
\input{libnew}
1997-04-03 18:41:49 -04:00
\input{libsite}
\input{libuser}
\input{libbltin} % really __builtin__
\input{libmain} % really __main__
\input{libfuture} % really __future__
\input{libstrings} % String Services
\input{libstring}
\input{libre}
\input{libstruct}
\input{libdifflib}
1999-06-11 15:36:42 -03:00
\input{libfpformat}
\input{libstringio}
\input{libtextwrap}
\input{libcodecs}
\input{libunicodedata}
\input{libstringprep}
\input{libmisc} % Miscellaneous Services
2001-12-18 12:32:30 -04:00
\input{libpydoc}
\input{libdoctest}
2001-04-07 02:42:14 -03:00
\input{libunittest}
\input{libtest}
\input{libmath}
1997-07-17 13:15:18 -03:00
\input{libcmath}
1997-04-03 18:41:49 -04:00
\input{librandom}
\input{libwhrandom}
\input{libbisect}
2002-08-02 15:03:24 -03:00
\input{libheapq}
\input{libarray}
2002-08-23 12:18:38 -03:00
\input{libsets}
\input{libitertools}
\input{libcfgparser}
\input{libfileinput}
\input{libxreadlines}
\input{libcalendar}
\input{libcmd}
\input{libshlex}
\input{liballos} % Generic Operating System Services
\input{libos}
\input{libposixpath} % os.path
\input{libdircache}
1999-04-22 12:01:44 -03:00
\input{libstat}
\input{libstatcache}
\input{libstatvfs}
1999-10-29 14:24:12 -03:00
\input{libfilecmp}
\input{libpopen2}
\input{libdatetime}
\input{libtime}
1999-06-25 15:54:30 -03:00
\input{libsched}
\input{libmutex}
1998-12-22 19:37:46 -04:00
\input{libgetpass}
1999-06-21 18:14:30 -03:00
\input{libcurses}
\input{libascii} % curses.ascii
\input{libcursespanel}
\input{libgetopt}
\input{liboptparse}
\input{libtempfile}
1996-07-30 15:20:01 -03:00
\input{liberrno}
1997-03-25 18:09:18 -04:00
\input{libglob}
\input{libfnmatch}
1998-12-28 16:16:58 -04:00
\input{libshutil}
\input{liblocale}
2000-08-30 00:26:17 -03:00
\input{libgettext}
2002-11-13 23:58:20 -04:00
\input{liblogging}
\input{libsomeos} % Optional Operating System Services
\input{libsignal}
\input{libsocket}
\input{libselect}
\input{libthread}
\input{libthreading}
\input{libdummythread}
\input{libdummythreading}
\input{libqueue}
2000-09-05 10:49:30 -03:00
\input{libmmap}
1997-04-03 18:41:49 -04:00
\input{libanydbm}
\input{libdbhash}
1997-04-03 18:41:49 -04:00
\input{libwhichdb}
1999-04-19 18:21:28 -03:00
\input{libbsddb}
2003-07-14 09:13:27 -03:00
\input{libdumbdbm}
1997-04-30 16:40:10 -03:00
\input{libzlib}
1997-07-17 13:27:42 -03:00
\input{libgzip}
\input{libbz2}
2000-03-31 13:51:10 -04:00
\input{libzipfile}
\input{libtarfile}
2000-07-06 01:47:25 -03:00
\input{libreadline}
\input{librlcompleter}
\input{libunix} % UNIX Specific Services
\input{libposix}
\input{libpwd}
\input{libgrp}
1996-04-10 13:18:20 -03:00
\input{libcrypt}
1999-07-01 17:39:59 -03:00
\input{libdl}
\input{libdbm}
1994-08-08 05:03:24 -03:00
\input{libgdbm}
\input{libtermios}
1999-06-23 14:29:02 -03:00
\input{libtty}
1999-06-29 15:12:22 -03:00
\input{libpty}
\input{libfcntl}
\input{libpipes}
\input{libposixfile}
\input{libresource}
\input{libnis}
1995-10-09 17:49:57 -03:00
\input{libsyslog}
\input{libcommands}
\input{libpdb} % The Python Debugger
\input{libprofile} % The Python Profiler
\input{libhotshot} % New profiler
2003-04-08 22:39:06 -03:00
\input{libtimeit}
\input{internet} % Internet Protocols
\input{libwebbrowser}
1995-02-27 13:53:25 -04:00
\input{libcgi}
\input{libcgitb}
1995-03-22 11:48:46 -04:00
\input{liburllib}
2001-03-01 15:54:29 -04:00
\input{liburllib2}
1995-03-22 11:48:46 -04:00
\input{libhttplib}
1995-02-16 12:28:22 -04:00
\input{libftplib}
\input{libgopherlib}
\input{libpoplib}
1998-04-11 01:27:07 -03:00
\input{libimaplib}
1995-02-16 12:28:22 -04:00
\input{libnntplib}
\input{libsmtplib}
\input{libtelnetlib}
1995-02-16 12:28:22 -04:00
\input{liburlparse}
\input{libsocksvr}
\input{libbasehttp}
\input{libsimplehttp}
\input{libcgihttp}
2000-08-19 13:55:31 -03:00
\input{libcookie}
\input{libxmlrpclib}
\input{libsimplexmlrpc}
\input{libdocxmlrpc}
1999-07-02 11:27:03 -03:00
\input{libasyncore}
\input{libasynchat}
\input{netdata} % Internet Data Handling
\input{libformatter}
% MIME & email stuff
\input{email}
\input{libmailcap}
\input{libmailbox}
\input{libmhlib}
1995-03-22 11:48:46 -04:00
\input{libmimetools}
\input{libmimetypes}
\input{libmimewriter}
\input{libmimify}
\input{libmultifile}
\input{librfc822}
% encoding stuff
\input{libbase64}
\input{libbinascii}
\input{libbinhex}
\input{libquopri}
\input{libuu}
\input{libxdrlib}
% file formats
\input{libnetrc}
2000-03-31 13:51:10 -04:00
\input{librobotparser}
\input{libcsv}
1995-02-16 12:28:22 -04:00
\input{markup} % Structured Markup Processing Tools
\input{libhtmlparser}
\input{libsgmllib}
\input{libhtmllib}
\input{libpyexpat}
\input{xmldom}
\input{xmldomminidom}
\input{xmldompulldom}
\input{xmlsax}
\input{xmlsaxhandler}
\input{xmlsaxutils}
\input{xmlsaxreader}
\input{libxmllib}
\input{libmm} % Multimedia Services
\input{libaudioop}
\input{libimageop}
\input{libaifc}
1999-06-23 10:34:22 -03:00
\input{libsunau}
\input{libwave}
1999-06-22 15:50:06 -03:00
\input{libchunk}
1999-04-19 18:21:28 -03:00
\input{libcolorsys}
\input{librgbimg}
\input{libimghdr}
\input{libsndhdr}
2003-03-09 20:07:14 -04:00
\input{libossaudiodev}
\input{libcrypto} % Cryptographic Services
2001-09-11 13:59:42 -03:00
\input{libhmac}
\input{libmd5}
1999-04-23 18:52:18 -03:00
\input{libsha}
\input{libmpz}
\input{librotor}
\input{tkinter}
\input{librestricted} % Restricted Execution
\input{librexec}
\input{libbastion}
\input{language} % Python Language Services
\input{libparser}
\input{libsymbol}
\input{libtoken}
\input{libkeyword}
\input{libtokenize}
\input{libtabnanny}
\input{libpyclbr}
\input{libpycompile} % really py_compile
\input{libcompileall}
\input{libdis}
\input{distutils}
\input{compiler} % compiler package
%\input{libamoeba} % AMOEBA ONLY
%\input{libstdwin} % STDWIN ONLY
\input{libsgi} % SGI IRIX ONLY
\input{libal}
1995-03-28 07:56:52 -04:00
\input{libcd}
\input{libfl}
\input{libfm}
\input{libgl}
\input{libimgfile}
\input{libjpeg}
%\input{libpanel}
\input{libsun} % SUNOS ONLY
1998-02-19 14:59:48 -04:00
\input{libsunaudio}
\input{windows} % MS Windows ONLY
\input{libmsvcrt}
\input{libwinreg}
\input{libwinsound}
\appendix
\input{libundoc}
%\chapter{Obsolete Modules}
%\input{libcmpcache}
%\input{libcmp}
%\input{libni}
%\input{librand}
%\input{libregex}
%\input{libregsub}
\chapter{Reporting Bugs}
\input{reportingbugs}
\chapter{History and License}
\input{license}
%
% The ugly "%begin{latexonly}" pseudo-environments are really just to
% keep LaTeX2HTML quiet during the \renewcommand{} macros; they're
% not really valuable.
%
%begin{latexonly}
\renewcommand{\indexname}{Module Index}
%end{latexonly}
\input{modlib.ind} % Module Index
%begin{latexonly}
\renewcommand{\indexname}{Index}
%end{latexonly}
\input{lib.ind} % Index
1991-01-22 07:45:29 -04:00
\end{document}