| 
									
										
										
										
											1992-04-06 14:04:04 +00:00
										 |  |  | \documentstyle[twoside,11pt,myformat]{report} | 
					
						
							| 
									
										
										
										
											1991-02-19 12:53:17 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-02-28 17:14:32 +00: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 12:22:53 +00:00
										 |  |  | \title{Python Library Reference} | 
					
						
							| 
									
										
										
										
											1991-01-22 11:45:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1994-10-06 10:29:26 +00:00
										 |  |  | \input{boilerplate} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \makeindex			% tell \index to actually write the .idx file
 | 
					
						
							| 
									
										
										
										
											1993-11-23 16:28:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1992-01-07 16:40:44 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1991-01-22 11:45:29 +00:00
										 |  |  | \begin{document} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1991-01-22 11:45:29 +00:00
										 |  |  | \pagenumbering{roman} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \maketitle | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1994-10-06 10:29:26 +00:00
										 |  |  | \input{copyright} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1991-01-22 11:45:29 +00:00
										 |  |  | \begin{abstract} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \noindent | 
					
						
							| 
									
										
										
										
											1995-03-30 16:01:33 +00: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 11:45:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \end{abstract} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \pagebreak | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1992-01-29 14:46:35 +00:00
										 |  |  | { | 
					
						
							|  |  |  | \parskip = 0mm | 
					
						
							| 
									
										
										
										
											1991-01-22 11:45:29 +00:00
										 |  |  | \tableofcontents | 
					
						
							| 
									
										
										
										
											1992-01-29 14:46:35 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											1991-01-22 11:45:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \pagebreak | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \pagenumbering{arabic} | 
					
						
							| 
									
										
										
										
											1992-03-24 13:34:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | 				% Chapter title:
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \input{libintro}		% Introduction
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \input{libobjs}			% Built-in Types, Exceptions and Functions
 | 
					
						
							|  |  |  | \input{libtypes} | 
					
						
							|  |  |  | \input{libexcs} | 
					
						
							|  |  |  | \input{libfuncs} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libpython}		% Python Services
 | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libsys} | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libtypes2}		% types is already taken :-(
 | 
					
						
							|  |  |  | \input{libtraceback} | 
					
						
							|  |  |  | \input{libpickle} | 
					
						
							|  |  |  | \input{libshelve} | 
					
						
							|  |  |  | \input{libcopy} | 
					
						
							|  |  |  | \input{libmarshal} | 
					
						
							| 
									
										
										
										
											1995-01-04 19:17:34 +00:00
										 |  |  | \input{libimp} | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libbltin}		% really __builtin__
 | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libmain}			% really __main__
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \input{libstrings}		% String Services
 | 
					
						
							|  |  |  | \input{libstring} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libregex} | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libregsub} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libstruct} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libmisc}			% Miscellaneous Services
 | 
					
						
							|  |  |  | \input{libmath} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{librand} | 
					
						
							|  |  |  | \input{libwhrandom} | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libarray} | 
					
						
							| 
									
										
										
										
											1995-03-02 12:38:39 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{liballos}		% Generic Operating System Services
 | 
					
						
							|  |  |  | \input{libos} | 
					
						
							|  |  |  | \input{libtime} | 
					
						
							|  |  |  | \input{libgetopt} | 
					
						
							|  |  |  | \input{libtempfile} | 
					
						
							| 
									
										
										
										
											1995-03-02 12:38:39 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libsomeos}		% Optional Operating System Services
 | 
					
						
							|  |  |  | \input{libsignal} | 
					
						
							|  |  |  | \input{libsocket} | 
					
						
							|  |  |  | \input{libselect} | 
					
						
							|  |  |  | \input{libthread} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libunix}			% UNIX Specific Services
 | 
					
						
							|  |  |  | \input{libposix} | 
					
						
							|  |  |  | \input{libppath}		% == posixpath
 | 
					
						
							|  |  |  | \input{libpwd} | 
					
						
							|  |  |  | \input{libgrp} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libdbm} | 
					
						
							| 
									
										
										
										
											1994-08-08 08:03:24 +00:00
										 |  |  | \input{libgdbm} | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libtermios} | 
					
						
							|  |  |  | \input{libfcntl} | 
					
						
							| 
									
										
										
										
											1995-01-04 19:17:34 +00:00
										 |  |  | \input{libposixfile} | 
					
						
							| 
									
										
										
										
											1995-10-09 20:49:57 +00:00
										 |  |  | \input{libsyslog} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libpdb}			% The Python Debugger
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \input{libprofile}		% The Python Profiler
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \input{libwww}			% Internet and WWW Services
 | 
					
						
							| 
									
										
										
										
											1995-02-27 17:53:25 +00:00
										 |  |  | \input{libcgi} | 
					
						
							| 
									
										
										
										
											1995-03-22 15:48:46 +00:00
										 |  |  | \input{liburllib} | 
					
						
							|  |  |  | \input{libhttplib} | 
					
						
							| 
									
										
										
										
											1995-02-16 16:28:22 +00:00
										 |  |  | \input{libftplib} | 
					
						
							|  |  |  | \input{libgopherlib} | 
					
						
							|  |  |  | \input{libnntplib} | 
					
						
							|  |  |  | \input{liburlparse} | 
					
						
							| 
									
										
										
										
											1995-03-22 15:48:46 +00:00
										 |  |  | \input{libhtmllib} | 
					
						
							|  |  |  | \input{libsgmllib} | 
					
						
							|  |  |  | \input{librfc822} | 
					
						
							|  |  |  | \input{libmimetools} | 
					
						
							| 
									
										
										
										
											1995-08-29 11:30:24 +00:00
										 |  |  | \input{libbinascii} | 
					
						
							| 
									
										
										
										
											1995-02-16 16:28:22 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libmm}			% Multimedia Services
 | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libaudioop} | 
					
						
							|  |  |  | \input{libimageop} | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libaifc} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libjpeg} | 
					
						
							|  |  |  | \input{librgbimg} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-28 13:35:14 +00:00
										 |  |  | \input{libcrypto}		% Cryptographic Services
 | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libmd5} | 
					
						
							|  |  |  | \input{libmpz} | 
					
						
							|  |  |  | \input{librotor} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %\input{libamoeba}		% AMOEBA ONLY
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-02-28 17:14:32 +00:00
										 |  |  | \input{libmac}			% MACINTOSH ONLY
 | 
					
						
							| 
									
										
										
										
											1995-03-01 15:38:16 +00:00
										 |  |  | \input{libctb} | 
					
						
							|  |  |  | \input{libmacconsole} | 
					
						
							| 
									
										
										
										
											1995-03-07 10:12:11 +00:00
										 |  |  | \input{libmacdnr} | 
					
						
							| 
									
										
										
										
											1995-03-01 15:38:16 +00:00
										 |  |  | \input{libmacfs} | 
					
						
							| 
									
										
										
										
											1995-08-14 13:40:05 +00:00
										 |  |  | \input{libmacos} | 
					
						
							| 
									
										
										
										
											1995-03-01 15:38:16 +00:00
										 |  |  | \input{libmactcp} | 
					
						
							|  |  |  | \input{libmacspeech} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \input{libstdwin}		% STDWIN ONLY
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \input{libsgi}			% SGI IRIX ONLY
 | 
					
						
							|  |  |  | \input{libal} | 
					
						
							|  |  |  | %\input{libaudio}
 | 
					
						
							| 
									
										
										
										
											1995-03-28 11:56:52 +00:00
										 |  |  | \input{libcd} | 
					
						
							| 
									
										
										
										
											1994-08-01 12:22:53 +00:00
										 |  |  | \input{libfl} | 
					
						
							|  |  |  | \input{libfm} | 
					
						
							|  |  |  | \input{libgl} | 
					
						
							|  |  |  | \input{libimgfile} | 
					
						
							|  |  |  | %\input{libpanel}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \input{libsun}			% SUNOS ONLY
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \input{lib.ind}			% Index
 | 
					
						
							| 
									
										
										
										
											1991-01-22 11:45:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \end{document} |