Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b91e934c
Commit
b91e934c
authored
Jul 23, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted to use the new module synopsis support macros.
parent
fe7f3bc2
Changes
139
Hide whitespace changes
Inline
Side-by-side
Showing
139 changed files
with
628 additions
and
707 deletions
+628
-707
Doc/lib/libaifc.tex
Doc/lib/libaifc.tex
+4
-2
Doc/lib/libal.tex
Doc/lib/libal.tex
+8
-4
Doc/lib/liballos.tex
Doc/lib/liballos.tex
+1
-27
Doc/lib/libamoeba.tex
Doc/lib/libamoeba.tex
+4
-2
Doc/lib/libanydbm.tex
Doc/lib/libanydbm.tex
+8
-4
Doc/lib/libarray.tex
Doc/lib/libarray.tex
+4
-2
Doc/lib/libaudioop.tex
Doc/lib/libaudioop.tex
+4
-2
Doc/lib/libbase64.tex
Doc/lib/libbase64.tex
+4
-2
Doc/lib/libbasehttp.tex
Doc/lib/libbasehttp.tex
+4
-2
Doc/lib/libbastion.tex
Doc/lib/libbastion.tex
+4
-2
Doc/lib/libbinascii.tex
Doc/lib/libbinascii.tex
+5
-2
Doc/lib/libbinhex.tex
Doc/lib/libbinhex.tex
+4
-2
Doc/lib/libbisect.tex
Doc/lib/libbisect.tex
+4
-2
Doc/lib/libbltin.tex
Doc/lib/libbltin.tex
+4
-2
Doc/lib/libcalendar.tex
Doc/lib/libcalendar.tex
+4
-2
Doc/lib/libcd.tex
Doc/lib/libcd.tex
+4
-2
Doc/lib/libcgi.tex
Doc/lib/libcgi.tex
+5
-2
Doc/lib/libcmath.tex
Doc/lib/libcmath.tex
+4
-2
Doc/lib/libcmd.tex
Doc/lib/libcmd.tex
+5
-2
Doc/lib/libcode.tex
Doc/lib/libcode.tex
+4
-2
Doc/lib/libcommands.tex
Doc/lib/libcommands.tex
+4
-2
Doc/lib/libcopy.tex
Doc/lib/libcopy.tex
+4
-2
Doc/lib/libcopyreg.tex
Doc/lib/libcopyreg.tex
+8
-8
Doc/lib/libcrypt.tex
Doc/lib/libcrypt.tex
+4
-2
Doc/lib/libcrypto.tex
Doc/lib/libcrypto.tex
+1
-12
Doc/lib/libdbm.tex
Doc/lib/libdbm.tex
+4
-2
Doc/lib/libdis.tex
Doc/lib/libdis.tex
+4
-2
Doc/lib/liberrno.tex
Doc/lib/liberrno.tex
+4
-2
Doc/lib/libexcs.tex
Doc/lib/libexcs.tex
+1
-0
Doc/lib/libfcntl.tex
Doc/lib/libfcntl.tex
+4
-2
Doc/lib/libfileinput.tex
Doc/lib/libfileinput.tex
+5
-2
Doc/lib/libfl.tex
Doc/lib/libfl.tex
+12
-6
Doc/lib/libfm.tex
Doc/lib/libfm.tex
+4
-2
Doc/lib/libfnmatch.tex
Doc/lib/libfnmatch.tex
+4
-2
Doc/lib/libformatter.tex
Doc/lib/libformatter.tex
+4
-2
Doc/lib/libftplib.tex
Doc/lib/libftplib.tex
+4
-2
Doc/lib/libgdbm.tex
Doc/lib/libgdbm.tex
+4
-2
Doc/lib/libgetopt.tex
Doc/lib/libgetopt.tex
+4
-2
Doc/lib/libgl.tex
Doc/lib/libgl.tex
+23
-14
Doc/lib/libglob.tex
Doc/lib/libglob.tex
+4
-2
Doc/lib/libgopherlib.tex
Doc/lib/libgopherlib.tex
+4
-2
Doc/lib/libgrp.tex
Doc/lib/libgrp.tex
+4
-2
Doc/lib/libgzip.tex
Doc/lib/libgzip.tex
+4
-2
Doc/lib/libhtmllib.tex
Doc/lib/libhtmllib.tex
+4
-2
Doc/lib/libhttplib.tex
Doc/lib/libhttplib.tex
+4
-2
Doc/lib/libimageop.tex
Doc/lib/libimageop.tex
+4
-2
Doc/lib/libimaplib.tex
Doc/lib/libimaplib.tex
+4
-2
Doc/lib/libimgfile.tex
Doc/lib/libimgfile.tex
+4
-2
Doc/lib/libimghdr.tex
Doc/lib/libimghdr.tex
+4
-2
Doc/lib/libimp.tex
Doc/lib/libimp.tex
+4
-2
Doc/lib/libjpeg.tex
Doc/lib/libjpeg.tex
+4
-2
Doc/lib/libkeyword.tex
Doc/lib/libkeyword.tex
+4
-2
Doc/lib/liblocale.tex
Doc/lib/liblocale.tex
+4
-2
Doc/lib/libmailbox.tex
Doc/lib/libmailbox.tex
+4
-2
Doc/lib/libmailcap.tex
Doc/lib/libmailcap.tex
+4
-2
Doc/lib/libmain.tex
Doc/lib/libmain.tex
+4
-2
Doc/lib/libmarshal.tex
Doc/lib/libmarshal.tex
+5
-2
Doc/lib/libmath.tex
Doc/lib/libmath.tex
+4
-2
Doc/lib/libmd5.tex
Doc/lib/libmd5.tex
+4
-2
Doc/lib/libmimetools.tex
Doc/lib/libmimetools.tex
+4
-2
Doc/lib/libmimetypes.tex
Doc/lib/libmimetypes.tex
+4
-2
Doc/lib/libmimify.tex
Doc/lib/libmimify.tex
+4
-2
Doc/lib/libmisc.tex
Doc/lib/libmisc.tex
+1
-26
Doc/lib/libmm.tex
Doc/lib/libmm.tex
+1
-22
Doc/lib/libmpz.tex
Doc/lib/libmpz.tex
+4
-2
Doc/lib/libmultifile.tex
Doc/lib/libmultifile.tex
+4
-2
Doc/lib/libni.tex
Doc/lib/libni.tex
+4
-2
Doc/lib/libnntplib.tex
Doc/lib/libnntplib.tex
+4
-2
Doc/lib/liboperator.tex
Doc/lib/liboperator.tex
+4
-2
Doc/lib/libos.tex
Doc/lib/libos.tex
+4
-2
Doc/lib/libpanel.tex
Doc/lib/libpanel.tex
+12
-6
Doc/lib/libparser.tex
Doc/lib/libparser.tex
+5
-2
Doc/lib/libpdb.tex
Doc/lib/libpdb.tex
+4
-2
Doc/lib/libpickle.tex
Doc/lib/libpickle.tex
+8
-4
Doc/lib/libpopen2.tex
Doc/lib/libpopen2.tex
+4
-2
Doc/lib/libpoplib.tex
Doc/lib/libpoplib.tex
+4
-2
Doc/lib/libposix.tex
Doc/lib/libposix.tex
+5
-2
Doc/lib/libposixfile.tex
Doc/lib/libposixfile.tex
+4
-2
Doc/lib/libppath.tex
Doc/lib/libppath.tex
+3
-2
Doc/lib/libpprint.tex
Doc/lib/libpprint.tex
+4
-2
Doc/lib/libprofile.tex
Doc/lib/libprofile.tex
+4
-2
Doc/lib/libpwd.tex
Doc/lib/libpwd.tex
+4
-2
Doc/lib/libpython.tex
Doc/lib/libpython.tex
+1
-77
Doc/lib/libqueue.tex
Doc/lib/libqueue.tex
+4
-2
Doc/lib/libquopri.tex
Doc/lib/libquopri.tex
+4
-2
Doc/lib/librand.tex
Doc/lib/librand.tex
+4
-2
Doc/lib/librandom.tex
Doc/lib/librandom.tex
+4
-2
Doc/lib/libre.tex
Doc/lib/libre.tex
+4
-2
Doc/lib/libregex.tex
Doc/lib/libregex.tex
+4
-2
Doc/lib/libregsub.tex
Doc/lib/libregsub.tex
+4
-2
Doc/lib/libresource.tex
Doc/lib/libresource.tex
+5
-2
Doc/lib/librestricted.tex
Doc/lib/librestricted.tex
+1
-9
Doc/lib/librexec.tex
Doc/lib/librexec.tex
+4
-2
Doc/lib/librfc822.tex
Doc/lib/librfc822.tex
+4
-2
Doc/lib/librgbimg.tex
Doc/lib/librgbimg.tex
+5
-2
Doc/lib/librotor.tex
Doc/lib/librotor.tex
+4
-2
Doc/lib/libselect.tex
Doc/lib/libselect.tex
+4
-2
Doc/lib/libsgi.tex
Doc/lib/libsgi.tex
+2
-0
Doc/lib/libsgmllib.tex
Doc/lib/libsgmllib.tex
+4
-2
Doc/lib/libshelve.tex
Doc/lib/libshelve.tex
+4
-2
Doc/lib/libsignal.tex
Doc/lib/libsignal.tex
+4
-2
Doc/lib/libsite.tex
Doc/lib/libsite.tex
+4
-2
Doc/lib/libsmtplib.tex
Doc/lib/libsmtplib.tex
+4
-2
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+4
-2
Doc/lib/libsocksvr.tex
Doc/lib/libsocksvr.tex
+4
-2
Doc/lib/libsomeos.tex
Doc/lib/libsomeos.tex
+1
-34
Doc/lib/libsoundex.tex
Doc/lib/libsoundex.tex
+4
-2
Doc/lib/libstat.tex
Doc/lib/libstat.tex
+5
-2
Doc/lib/libstdwin.tex
Doc/lib/libstdwin.tex
+12
-6
Doc/lib/libstring.tex
Doc/lib/libstring.tex
+4
-2
Doc/lib/libstrings.tex
Doc/lib/libstrings.tex
+1
-24
Doc/lib/libstrio.tex
Doc/lib/libstrio.tex
+8
-4
Doc/lib/libstruct.tex
Doc/lib/libstruct.tex
+4
-2
Doc/lib/libsunaudio.tex
Doc/lib/libsunaudio.tex
+4
-2
Doc/lib/libsymbol.tex
Doc/lib/libsymbol.tex
+4
-2
Doc/lib/libsys.tex
Doc/lib/libsys.tex
+13
-12
Doc/lib/libsyslog.tex
Doc/lib/libsyslog.tex
+4
-2
Doc/lib/libtempfile.tex
Doc/lib/libtempfile.tex
+4
-2
Doc/lib/libtemplate.tex
Doc/lib/libtemplate.tex
+12
-14
Doc/lib/libtermios.tex
Doc/lib/libtermios.tex
+8
-4
Doc/lib/libthread.tex
Doc/lib/libthread.tex
+4
-2
Doc/lib/libthreading.tex
Doc/lib/libthreading.tex
+4
-2
Doc/lib/libtime.tex
Doc/lib/libtime.tex
+4
-2
Doc/lib/libtoken.tex
Doc/lib/libtoken.tex
+4
-2
Doc/lib/libtraceback.tex
Doc/lib/libtraceback.tex
+4
-2
Doc/lib/libtypes2.tex
Doc/lib/libtypes2.tex
+4
-2
Doc/lib/libunix.tex
Doc/lib/libunix.tex
+1
-51
Doc/lib/liburllib.tex
Doc/lib/liburllib.tex
+4
-2
Doc/lib/liburlparse.tex
Doc/lib/liburlparse.tex
+5
-2
Doc/lib/libuser.tex
Doc/lib/libuser.tex
+4
-2
Doc/lib/libuserdict.tex
Doc/lib/libuserdict.tex
+8
-4
Doc/lib/libuu.tex
Doc/lib/libuu.tex
+4
-2
Doc/lib/libwhichdb.tex
Doc/lib/libwhichdb.tex
+4
-2
Doc/lib/libwhrandom.tex
Doc/lib/libwhrandom.tex
+4
-2
Doc/lib/libwww.tex
Doc/lib/libwww.tex
+1
-94
Doc/lib/libxdrlib.tex
Doc/lib/libxdrlib.tex
+5
-3
Doc/lib/libxmllib.tex
Doc/lib/libxmllib.tex
+4
-2
Doc/lib/libzlib.tex
Doc/lib/libzlib.tex
+4
-2
Doc/templates/module.tex
Doc/templates/module.tex
+12
-14
No files found.
Doc/lib/libaifc.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
aifc
}}
\label
{
module-aifc
}
\stmodindex
{
aifc
}
\declaremodule
{
standard
}{
aifc
}
\modulesynopsis
{
Read and write audio files in AIFF or AIFC format.
}
This module provides support for reading and writing AIFF and AIFF-C
files. AIFF is Audio Interchange File Format, a format for storing
...
...
Doc/lib/libal.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
al
}}
\label
{
module-al
}
\bimodindex
{
al
}
\declaremodule
{
builtin
}{
al
}
\modulesynopsis
{
Audio functions on the SGI.
}
This module provides access to the audio facilities of the SGI Indy
and Indigo workstations. See section 3A of the IRIX man pages for
...
...
@@ -160,8 +162,10 @@ Get status information on last error.
\section
{
Standard Module
\module
{
AL
}}
\nodename
{
AL (uppercase)
}
\stmodindex
{
AL
}
\declaremodule
{
standard
}{
AL
}
\modulesynopsis
{
Constants used with the
\module
{
al
}
module.
}
This module defines symbolic constants needed to use the built-in
module
\module
{
al
}
(see above); they are equivalent to those defined
...
...
Doc/lib/liballos.tex
View file @
b91e934c
...
...
@@ -7,30 +7,4 @@ such as files and a clock. The interfaces are generally modelled
after the
\UNIX
{}
or
\C
{}
interfaces but they are available on most
other systems as well. Here's an overview:
\begin{description}
\item
[os]
--- Miscellaneous OS interfaces.
\item
[time]
--- Time access and conversions.
\item
[getopt]
--- Parser for command line options.
\item
[tempfile]
--- Generate temporary file names.
\item
[errno]
--- Standard errno system symbols.
\item
[glob]
---
\UNIX
{}
shell style pathname pattern expansion.
\item
[fnmatch]
---
\UNIX
{}
shell style pathname pattern matching.
\item
[locale]
--- Internationalization services.
\end{description}
\localmoduletable
Doc/lib/libamoeba.tex
View file @
b91e934c
\chapter
{
Amoeba Specific Services
}
\section
{
Built-in Module
\module
{
amoeba
}}
\label
{
module-amoeba
}
\bimodindex
{
amoeba
}
\declaremodule
{
builtin
}{
amoeba
}
\modulesynopsis
{
None
}
This module provides some object types and operations useful for
Amoeba applications. It is only available on systems that support
...
...
Doc/lib/libanydbm.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
anydbm
}}
\label
{
module-anydbm
}
\stmodindex
{
anydbm
}
\declaremodule
{
standard
}{
anydbm
}
\modulesynopsis
{
Generic interface to DBM-style database modules.
}
\module
{
anydbm
}
is a generic interface to variants of the DBM
database ---
\module
{
dbhash
}
\refbimodindex
{
dbhash
}
,
...
...
@@ -45,8 +47,10 @@ strings.
\section
{
Standard Module
\module
{
dumbdbm
}}
\label
{
module-dumbdbm
}
\stmodindex
{
dumbdbm
}
\declaremodule
{
standard
}{
dumbdbm
}
\modulesynopsis
{
None
}
A simple and slow database implemented entirely in Python. This
should only be used when no other DBM-style database is available.
...
...
Doc/lib/libarray.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
array
}}
\label
{
module-array
}
\bimodindex
{
array
}
\declaremodule
{
builtin
}{
array
}
\modulesynopsis
{
Efficient arrays of uniformly typed numeric values.
}
\index
{
arrays
}
This module defines a new object type which can efficiently represent
...
...
Doc/lib/libaudioop.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
audioop
}}
\label
{
module-audioop
}
\bimodindex
{
audioop
}
\declaremodule
{
builtin
}{
audioop
}
\modulesynopsis
{
Manipulate raw audio data.
}
The
\module
{
audioop
}
module contains some useful operations on sound
fragments. It operates on sound fragments consisting of signed
...
...
Doc/lib/libbase64.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
base64
}}
\label
{
module-base64
}
\stmodindex
{
base64
}
\declaremodule
{
standard
}{
base64
}
\modulesynopsis
{
Encode/decode binary files using the MIME base64 encoding.
}
\indexii
{
base64
}{
encoding
}
\index
{
MIME!base64 encoding
}
...
...
Doc/lib/libbasehttp.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
BaseHTTPServer
}}
\label
{
module-BaseHTTPServer
}
\stmodindex
{
BaseHTTPServer
}
\declaremodule
{
standard
}{
BaseHTTPServer
}
\modulesynopsis
{
Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
}
\indexii
{
WWW
}{
server
}
\indexii
{
HTTP
}{
protocol
}
...
...
Doc/lib/libbastion.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
Bastion
}}
\label
{
module-Bastion
}
\stmodindex
{
Bastion
}
\declaremodule
{
standard
}{
Bastion
}
\modulesynopsis
{
Providing restricted access to objects.
}
% I'm concerned that the word 'bastion' won't be understood by people
% for whom English is a second language, making the module name
...
...
Doc/lib/libbinascii.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
binascii
}}
\label
{
module-binascii
}
\bimodindex
{
binascii
}
\declaremodule
{
builtin
}{
binascii
}
\modulesynopsis
{
Tools for converting between binary and various ascii-encoded binary
representation
}
The
\module
{
binascii
}
module contains a number of methods to convert
between binary and various
\ASCII
{}
-encoded binary
...
...
Doc/lib/libbinhex.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
binhex
}}
\label
{
module-binhex
}
\stmodindex
{
binhex
}
\declaremodule
{
standard
}{
binhex
}
\modulesynopsis
{
Encode and decode files in binhex4 format.
}
This module encodes and decodes files in binhex4 format, a format
allowing representation of Macintosh files in
\ASCII
{}
. On the Macintosh,
...
...
Doc/lib/libbisect.tex
View file @
b91e934c
...
...
@@ -3,8 +3,10 @@
% <arw@pythonpros.com>.
\section
{
Standard Module
\module
{
bisect
}}
\stmodindex
{
bisect
}
\label
{
module-bisect
}
\declaremodule
{
standard
}{
bisect
}
\modulesynopsis
{
None
}
This module provides support for maintaining a list in sorted order
...
...
Doc/lib/libbltin.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{__
builtin
__}}
\label
{
module-builtin
}
\bimodindex
{__
builtin
__}
\declaremodule
[builtin]
{
builtin
}{__
builtin
__}
\modulesynopsis
{
The set of built-in functions.
}
This module provides direct access to all `built-in' identifiers of
Python; e.g.
\code
{__
builtin
__
.open
}
is the full name for the built-in
...
...
Doc/lib/libcalendar.tex
View file @
b91e934c
% This section was contributed by Drew Csillag <drew_csillag@geocities.com>.
\section
{
Standard Module
\module
{
calendar
}}
\label
{
module-calendar
}
\stmodindex
{
calendar
}
\declaremodule
{
standard
}{
calendar
}
\modulesynopsis
{
None
}
This module allows you to output calendars like the
\UNIX
{}
...
...
Doc/lib/libcd.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
cd
}}
\label
{
module-cd
}
\bimodindex
{
cd
}
\declaremodule
{
builtin
}{
cd
}
\modulesynopsis
{
Interface to the CD-ROM on Silicon Graphics systems.
}
This module provides an interface to the Silicon Graphics CD library.
It is available only on Silicon Graphics systems.
...
...
Doc/lib/libcgi.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
cgi
}}
\label
{
module-cgi
}
\stmodindex
{
cgi
}
\declaremodule
{
standard
}{
cgi
}
\modulesynopsis
{
Common Gateway Interface, used to interpret forms in server-side
scripts.
}
\indexii
{
WWW
}{
server
}
\indexii
{
CGI
}{
protocol
}
\indexii
{
HTTP
}{
protocol
}
...
...
Doc/lib/libcmath.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
cmath
}}
\label
{
module-cmath
}
\declaremodule
{
builtin
}{
cmath
}
\modulesynopsis
{
Mathematical functions for complex numbers.
}
\bimodindex
{
cmath
}
This module is always available.
It provides access to mathematical functions for complex numbers.
The functions are:
...
...
Doc/lib/libcmd.tex
View file @
b91e934c
% Documentation by ESR
\section
{
Standard Module
\module
{
cmd
}}
\stmodindex
{
cmd
}
\label
{
module-cmd
}
\declaremodule
{
standard
}{
cmd
}
\modulesynopsis
{
Build line-oriented command interpreters; this is used by module
\module
{
pdb
}
.
}
The
\class
{
Cmd
}
class provides a simple framework for writing
line-oriented command interpreters. These are often useful for
...
...
Doc/lib/libcode.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
code
}}
\label
{
module-code
}
\stmodindex
{
code
}
\declaremodule
{
standard
}{
code
}
\modulesynopsis
{
Code object services.
}
The
\code
{
code
}
module defines operations pertaining to Python code
objects.
...
...
Doc/lib/libcommands.tex
View file @
b91e934c
% Documentation written by Sue Williams.
\section
{
Standard Module
\module
{
commands
}}
\stmodindex
{
commands
}
\label
{
module-commands
}
\declaremodule
{
standard
}{
commands
}
\modulesynopsis
{
Wrapper functions for
\function
{
os.popen()
}
.
}
The
\module
{
commands
}
module contains wrapper functions for
\function
{
os.popen()
}
which take a system command as a string and
...
...
Doc/lib/libcopy.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
copy
}}
\label
{
module-copy
}
\stmodindex
{
copy
}
\declaremodule
{
standard
}{
copy
}
\modulesynopsis
{
Shallow and deep copy operations.
}
\setindexsubitem
{
(copy function)
}
\ttindex
{
copy
}
\ttindex
{
deepcopy
}
...
...
Doc/lib/libcopyreg.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
copy
_
reg
}}
% Note that the label is a little off; the underscore causes LaTeX to
% yell & scream.
\label
{
module-copyreg
}
\stmodindex
{
copy
_
reg
}
\declaremodule
[copyreg]
{
standard
}{
copy
_
reg
}
The
\code
{
copy
_
reg
}
module provides support for the
\code
{
pickle
}
\refstmodindex
{
pickle
}
and
\code
{
cPickle
}
\refbimodindex
{
cPickle
}
modules. The
\code
{
copy
}
\refstmodindex
{
copy
}
module is likely to use this in the
\modulesynopsis
{
Register
\module
{
pickle
}
support functions.
}
The
\module
{
copy
_
reg
}
module provides support for the
\module
{
pickle
}
\refstmodindex
{
pickle
}
and
\module
{
cPickle
}
\refbimodindex
{
cPickle
}
modules. The
\module
{
copy
}
\refstmodindex
{
copy
}
module is likely to use this in the
future as well. It provides configuration information about object
constructors which are not classes. Such constructors may be factory
functions or class instances.
...
...
Doc/lib/libcrypt.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
crypt
}}
\label
{
module-crypt
}
\bimodindex
{
crypt
}
\declaremodule
{
builtin
}{
crypt
}
\modulesynopsis
{
The
\cfunction
{
crypt()
}
function used to check
\UNIX
{}
passwords.
}
This module implements an interface to the
\manpage
{
crypt
}{
3
}
routine,
which is a one-way hash function based upon a modified DES algorithm;
...
...
Doc/lib/libcrypto.tex
View file @
b91e934c
...
...
@@ -6,18 +6,7 @@ The modules described in this chapter implement various algorithms of
a cryptographic nature. They are available at the discretion of the
installation. Here's an overview:
\begin{description}
\item
[md5]
--- RSA's MD5 message digest algorithm.
\item
[mpz]
--- Interface to the GNU MP library for arbitrary precision arithmetic.
\item
[rotor]
--- Enigma-like encryption and decryption.
\end{description}
\localmoduletable
Hardcore cypherpunks will probably find the cryptographic modules
written by Andrew Kuchling of further interest; the package adds
...
...
Doc/lib/libdbm.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
dbm
}}
\label
{
module-dbm
}
\bimodindex
{
dbm
}
\declaremodule
{
builtin
}{
dbm
}
\modulesynopsis
{
The standard ``database'' interface, based on ndbm.
}
The
\code
{
dbm
}
module provides an interface to the
\UNIX
{}
\code
{
(n)dbm
}
library. Dbm objects behave like mappings
...
...
Doc/lib/libdis.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
dis
}}
\stmodindex
{
dis
}
\label
{
module-dis
}
\declaremodule
{
standard
}{
dis
}
\modulesynopsis
{
Disassembler.
}
The
\module
{
dis
}
module supports the analysis of Python byte code by
disassembling it. Since there is no Python assembler, this module
...
...
Doc/lib/liberrno.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
errno
}}
\label
{
module-errno
}
\stmodindex
{
errno
}
\declaremodule
{
standard
}{
errno
}
\modulesynopsis
{
Standard errno system symbols.
}
This module makes available standard errno system symbols.
...
...
Doc/lib/libexcs.tex
View file @
b91e934c
...
...
@@ -2,6 +2,7 @@
\label
{
module-exceptions
}
\stmodindex
{
exceptions
}
Exceptions can be class objects or string objects. While
traditionally, most exceptions have been string objects, in Python
1.5, all standard exceptions have been converted to class objects,
...
...
Doc/lib/libfcntl.tex
View file @
b91e934c
% Manual text by Jaap Vermeulen
\section
{
Built-in Module
\module
{
fcntl
}}
\label
{
module-fcntl
}
\bimodindex
{
fcntl
}
\declaremodule
{
builtin
}{
fcntl
}
\modulesynopsis
{
The
\function
{
fcntl()
}
and
\function
{
ioctl()
}
system calls.
}
\indexii
{
UNIX@
\UNIX
{}}{
file control
}
\indexii
{
UNIX@
\UNIX
{}}{
I/O control
}
...
...
Doc/lib/libfileinput.tex
View file @
b91e934c
% Documentation heavily adapted from module docstring.
\section
{
Standard Module
\module
{
fileinput
}}
\stmodindex
{
fileinput
}
\label
{
module-fileinput
}
\declaremodule
{
standard
}{
fileinput
}
\modulesynopsis
{
Perl-like iteration over lines from multiple input streams, with
``save in place'' capability.
}
This module implements a helper class and functions to quickly write a
loop over standard input or a list of files.
...
...
Doc/lib/libfl.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
fl
}}
\label
{
module-fl
}
\bimodindex
{
fl
}
\declaremodule
{
builtin
}{
fl
}
\modulesynopsis
{
FORMS library interface for GUI applications.
}
This module provides an interface to the FORMS Library
\index
{
FORMS
Library
}
by Mark Overmars
\index
{
Overmars, Mark
}
. The source for the
...
...
@@ -463,8 +465,10 @@ FORMS objects have these data attributes; see the FORMS documentation:
\end{tableiii}
\section
{
Standard Module
\module
{
FL
}}
\label
{
module-FLuppercase
}
\stmodindex
{
FL
}
\declaremodule
{
standard
}{
FL
}
\modulesynopsis
{
Constants used with the
\module
{
fl
}
module.
}
This module defines symbolic constants needed to use the built-in
module
\module
{
fl
}
(see above); they are equivalent to those defined in
...
...
@@ -478,8 +482,10 @@ from FL import *
\end{verbatim}
\section
{
Standard Module
\module
{
flp
}}
\label
{
module-flp
}
\stmodindex
{
flp
}
\declaremodule
{
standard
}{
flp
}
\modulesynopsis
{
Loading functions for stored FORMS designs.
}
This module defines functions that can read form definitions created
by the `form designer' (
\program
{
fdesign
}
) program that comes with the
...
...
Doc/lib/libfm.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
fm
}}
\label
{
module-fm
}
\bimodindex
{
fm
}
\declaremodule
{
builtin
}{
fm
}
\modulesynopsis
{
\emph
{
Font Manager
}
interface for SGI workstations.
}
This module provides access to the IRIS
\emph
{
Font Manager
}
library.
\index
{
Font Manager, IRIS
}
...
...
Doc/lib/libfnmatch.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
fnmatch
}}
\label
{
module-fnmatch
}
\stmodindex
{
fnmatch
}
\declaremodule
{
standard
}{
fnmatch
}
\modulesynopsis
{
\UNIX
{}
shell style pathname pattern matching.
}
This module provides support for
\UNIX
{}
shell-style wildcards, which
are
\emph
{
not
}
the same as regular expressions (which are documented
...
...
Doc/lib/libformatter.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
formatter
}}
\label
{
module-formatter
}
\stmodindex
{
formatter
}
\declaremodule
{
standard
}{
formatter
}
\modulesynopsis
{
Generic output formatter and device interface.
}
This module supports two interface definitions, each with mulitple
...
...
Doc/lib/libftplib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
ftplib
}}
\label
{
module-ftplib
}
\stmodindex
{
ftplib
}
\declaremodule
{
standard
}{
ftplib
}
\modulesynopsis
{
FTP protocol client (requires sockets).
}
\indexii
{
FTP
}{
protocol
}
...
...
Doc/lib/libgdbm.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
gdbm
}}
\label
{
module-gdbm
}
\bimodindex
{
gdbm
}
\declaremodule
{
builtin
}{
gdbm
}
\modulesynopsis
{
GNU's reinterpretation of dbm.
}
% Note that if this section appears on the same page as the first
% paragraph of the dbm module section, makeindex will produce the
...
...
Doc/lib/libgetopt.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
getopt
}}
\label
{
module-getopt
}
\stmodindex
{
getopt
}
\declaremodule
{
standard
}{
getopt
}
\modulesynopsis
{
Parser for command line options.
}
This module helps scripts to parse the command line arguments in
\code
{
sys.argv
}
.
...
...
Doc/lib/libgl.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
gl
}}
\label
{
module-gl
}
\bimodindex
{
gl
}
\declaremodule
{
builtin
}{
gl
}
\modulesynopsis
{
Functions from the Silicon Graphics
\emph
{
Graphics Library
}
.
}
This module provides access to the Silicon Graphics
\emph
{
Graphics Library
}
.
...
...
@@ -183,15 +185,22 @@ def main():
main()
\end{verbatim}
%
\section
{
Standard Modules
\module
{
GL
}
and
\module
{
DEVICE
}}
\nodename
{
GL and DEVICE
}
\stmodindex
{
GL
}
\stmodindex
{
DEVICE
}
These modules define the constants used by the Silicon Graphics
\emph
{
Graphics Library
}
that C programmers find in the header files
\file
{
<gl/gl.h>
}
and
\file
{
<gl/device.h>
}
.
Read the module source files for details.
\section
{
Standard Module
\module
{
DEVICE
}}
\declaremodule
{
standard
}{
DEVICE
}
\modulesynopsis
{
Constants used with the
\module
{
gl
}
module.
}
This modules defines the constants used by the Silicon Graphics
\emph
{
Graphics Library
}
that C programmers find in the header file
\code
{
<gl/device.h>
}
.
Read the module source file for details.
\section
{
Standard Module
\module
{
GL
}}
\declaremodule
{
standard
}{
GL
}
\modulesynopsis
{
Constants used with the
\module
{
gl
}
module.
}
This module contains constants used by the Silicon Graphics
\emph
{
Graphics Library
}
from the C header file
\code
{
<gl/gl.h>
}
.
Read the module source file for details.
Doc/lib/libglob.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
glob
}}
\label
{
module-glob
}
\stmodindex
{
glob
}
\declaremodule
{
standard
}{
glob
}
\modulesynopsis
{
\UNIX
{}
shell style pathname pattern expansion.
}
The
\module
{
glob
}
module finds all the pathnames matching a specified
pattern according to the rules used by the
\UNIX
{}
shell. No tilde
...
...
Doc/lib/libgopherlib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
gopherlib
}}
\label
{
module-gopherlib
}
\stmodindex
{
gopherlib
}
\declaremodule
{
standard
}{
gopherlib
}
\modulesynopsis
{
Gopher protocol client (requires sockets).
}
\indexii
{
Gopher
}{
protocol
}
...
...
Doc/lib/libgrp.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
grp
}}
\label
{
module-grp
}
\declaremodule
{
builtin
}{
grp
}
\modulesynopsis
{
The group database (
\function
{
getgrnam()
}
and friends).
}
\bimodindex
{
grp
}
This module provides access to the
\UNIX
{}
group database.
It is available on all
\UNIX
{}
versions.
...
...
Doc/lib/libgzip.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
gzip
}}
\label
{
module-gzip
}
\stmodindex
{
gzip
}
\declaremodule
{
standard
}{
gzip
}
\modulesynopsis
{
None
}
The data compression provided by the
\code
{
zlib
}
module is compatible
with that used by the GNU compression program
\program
{
gzip
}
.
...
...
Doc/lib/libhtmllib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
htmllib
}}
\label
{
module-htmllib
}
\stmodindex
{
htmllib
}
\declaremodule
{
standard
}{
htmllib
}
\modulesynopsis
{
A parser for HTML documents.
}
\index
{
HTML
}
\index
{
hypertext
}
...
...
Doc/lib/libhttplib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
httplib
}}
\label
{
module-httplib
}
\stmodindex
{
httplib
}
\declaremodule
{
standard
}{
httplib
}
\modulesynopsis
{
HTTP protocol client (requires sockets).
}
\indexii
{
HTTP
}{
protocol
}
...
...
Doc/lib/libimageop.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
imageop
}}
\label
{
module-imageop
}
\bimodindex
{
imageop
}
\declaremodule
{
builtin
}{
imageop
}
\modulesynopsis
{
Manipulate raw image data.
}
The
\module
{
imageop
}
module contains some useful operations on images.
It operates on images consisting of 8 or 32 bit pixels stored in
...
...
Doc/lib/libimaplib.tex
View file @
b91e934c
...
...
@@ -4,8 +4,10 @@
% The imaplib module was written by Piers Lauder.
\section
{
Standard Module
\module
{
imaplib
}}
\stmodindex
{
imaplib
}
\label
{
module-imaplib
}
\declaremodule
{
standard
}{
imaplib
}
\modulesynopsis
{
IMAP4 protocol client (requires sockets).
}
\indexii
{
IMAP4
}{
protocol
}
This module defines a class,
\class
{
IMAP4
}
, which encapsulates a
...
...
Doc/lib/libimgfile.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
imgfile
}}
\label
{
module-imgfile
}
\bimodindex
{
imgfile
}
\declaremodule
{
builtin
}{
imgfile
}
\modulesynopsis
{
Support for SGI imglib files.
}
The
\module
{
imgfile
}
module allows Python programs to access SGI imglib image
files (also known as
\file
{
.rgb
}
files). The module is far from
...
...
Doc/lib/libimghdr.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
imghdr
}}
\label
{
module-imghdr
}
\stmodindex
{
imghdr
}
\declaremodule
{
standard
}{
imghdr
}
\modulesynopsis
{
Determine the type of image contained in a file or byte stream.
}
The
\module
{
imghdr
}
module determines the type of image contained in a
file or byte stream.
...
...
Doc/lib/libimp.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
imp
}}
\label
{
module-imp
}
\bimodindex
{
imp
}
\declaremodule
{
builtin
}{
imp
}
\modulesynopsis
{
Access the implementation of the
\keyword
{
import
}
statement.
}
\index
{
import
}
This module provides an interface to the mechanisms used to implement
...
...
Doc/lib/libjpeg.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
jpeg
}}
\label
{
module-jpeg
}
\bimodindex
{
jpeg
}
\declaremodule
{
builtin
}{
jpeg
}
\modulesynopsis
{
Read and write image files in compressed JPEG format.
}
The module
\module
{
jpeg
}
provides access to the jpeg compressor and
decompressor written by the Independent JPEG Group
%
...
...
Doc/lib/libkeyword.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
keyword
}}
\label
{
module-keyword
}
\stmodindex
{
keyword
}
\declaremodule
{
standard
}{
keyword
}
\modulesynopsis
{
Test whether a string is a keyword in the Python language.
}
This module allows a Python program to determine if a string is a
keyword. A single function is provided:
...
...
Doc/lib/liblocale.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
locale
}}
\stmodindex
{
locale
}
\declaremodule
{
standard
}{
locale
}
\modulesynopsis
{
Internationalization services.
}
\label
{
module-locale
}
The
\code
{
locale
}
module opens access to the
\POSIX
{}
locale database
and functionality. The
\POSIX
{}
locale mechanism allows applications
...
...
Doc/lib/libmailbox.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
mailbox
}}
\label
{
module-mailbox
}
\stmodindex
{
mailbox
}
\declaremodule
{
standard
}{
mailbox
}
\modulesynopsis
{
Read various mailbox formats.
}
This module defines a number of classes that allow easy and uniform
...
...
Doc/lib/libmailcap.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
mailcap
}}
\label
{
module-mailcap
}
\stmodindex
{
mailcap
}
\declaremodule
{
standard
}{
mailcap
}
\modulesynopsis
{
Mailcap file handling.
}
Mailcap files are used to configure how MIME-aware applications such
as mail readers and Web browsers react to files with different MIME
...
...
Doc/lib/libmain.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{__
main
__}}
\label
{
module-main
}
\bimodindex
{__
main
__}
\declaremodule
[main]
{
builtin
}{__
main
__}
\modulesynopsis
{
The environment where the top-level script is run.
}
This module represents the (otherwise anonymous) scope in which the
interpreter's main program executes --- commands read either from
standard input or from a script file.
Doc/lib/libmarshal.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
marshal
}}
\label
{
module-marshal
}
\bimodindex
{
marshal
}
\declaremodule
{
builtin
}{
marshal
}
\modulesynopsis
{
Convert Python objects to streams of bytes and back (with
different constraints).
}
This module contains functions that can read and write Python
values in a binary format. The format is specific to Python, but
...
...
Doc/lib/libmath.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
math
}}
\label
{
module-math
}
\declaremodule
{
builtin
}{
math
}
\modulesynopsis
{
Mathematical functions (
\function
{
sin()
}
etc.).
}
\bimodindex
{
math
}
This module is always available.
It provides access to the mathematical functions defined by the
\C
{}
standard.
...
...
Doc/lib/libmd5.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
md5
}}
\label
{
module-md5
}
\bimodindex
{
md5
}
\declaremodule
{
builtin
}{
md5
}
\modulesynopsis
{
RSA's MD5 message digest algorithm.
}
This module implements the interface to RSA's MD5 message digest
\index
{
message digest, MD5
}
...
...
Doc/lib/libmimetools.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
mimetools
}}
\label
{
module-mimetools
}
\stmodindex
{
mimetools
}
\declaremodule
{
standard
}{
mimetools
}
\modulesynopsis
{
Tools for parsing MIME style message bodies.
}
This module defines a subclass of the
\class
{
rfc822.Message
}
class and
...
...
Doc/lib/libmimetypes.tex
View file @
b91e934c
...
...
@@ -3,8 +3,10 @@
% mimetypes module.
\section
{
Standard Module
\module
{
mimetypes
}}
\label
{
module-mimetypes
}
\stmodindex
{
mimetypes
}
\declaremodule
{
standard
}{
mimetypes
}
\modulesynopsis
{
Mapping of filename extensions to MIME types.
}
\indexii
{
MIME
}{
content type
}
The
\module
{
mimetypes
}
converts between a filename or URL and the MIME
...
...
Doc/lib/libmimify.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
mimify
}}
\label
{
module-mimify
}
\stmodindex
{
mimify
}
\declaremodule
{
standard
}{
mimify
}
\modulesynopsis
{
Mimification and unmimification of mail messages.
}
The mimify module defines two functions to convert mail messages to
and from MIME format. The mail message can be either a simple message
...
...
Doc/lib/libmisc.tex
View file @
b91e934c
...
...
@@ -4,29 +4,4 @@
The modules described in this chapter provide miscellaneous services
that are available in all Python versions. Here's an overview:
\begin{description}
\item
[math]
--- Mathematical functions (
\function
{
sin()
}
etc.).
\item
[cmath]
--- Mathematical functions for complex numbers.
\item
[whrandom]
--- Floating point pseudo-random number generator.
\item
[random]
--- Generate pseudo-random numbers with various common distributions.
\item
[array]
--- Efficient arrays of uniformly typed numeric values.
\item
[fileinput]
--- Perl-like iteration over lines from multiple input streams, with
``save in place'' capability.
\item
[cmd]
--- Build line-oriented command interpreters; this is used by module
\module
{
pdb
}
.
\end{description}
\localmoduletable
Doc/lib/libmm.tex
View file @
b91e934c
...
...
@@ -5,25 +5,4 @@ The modules described in this chapter implement various algorithms or
interfaces that are mainly useful for multimedia applications. They
are available at the discretion of the installation. Here's an overview:
\begin{description}
\item
[audioop]
--- Manipulate raw audio data.
\item
[imageop]
--- Manipulate raw image data.
\item
[aifc]
--- Read and write audio files in AIFF or AIFC format.
\item
[jpeg]
--- Read and write image files in compressed JPEG format.
\item
[rgbimg]
--- Read and write image files in ``SGI RGB'' format (the module is
\emph
{
not
}
SGI specific though)!
\item
[imghdr]
--- Determine the type of image contained in a file or byte stream.
\end{description}
\localmoduletable
Doc/lib/libmpz.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
mpz
}}
\label
{
module-mpz
}
\bimodindex
{
mpz
}
\declaremodule
{
builtin
}{
mpz
}
\modulesynopsis
{
Interface to the GNU MP library for arbitrary precision arithmetic.
}
This is an optional module. It is only available when Python is
configured to include it, which requires that the GNU MP software is
...
...
Doc/lib/libmultifile.tex
View file @
b91e934c
% Documentation by ESR
\section
{
Standard Module
\module
{
multifile
}}
\stmodindex
{
multiFile
}
\label
{
module-multifile
}
\declaremodule
[multifile]
{
standard
}{
multiFile
}
\modulesynopsis
{
None
}
The
\class
{
MultiFile
}
object enables you to treat sections of a text
file as file-like input objects, with
\code
{
''
}
being returned by
...
...
Doc/lib/libni.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
ni
}}
\label
{
module-ni
}
\stmodindex
{
ni
}
\declaremodule
{
standard
}{
ni
}
\modulesynopsis
{
None
}
\strong
{
Warning: This module is obsolete.
}
As of Python 1.5a4,
package support (with different semantics for
\code
{__
init
__}
and no
...
...
Doc/lib/libnntplib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
nntplib
}}
\label
{
module-nntplib
}
\stmodindex
{
nntplib
}
\declaremodule
{
standard
}{
nntplib
}
\modulesynopsis
{
NNTP protocol client (requires sockets).
}
\indexii
{
NNTP
}{
protocol
}
\index
{
Network News Transfer Protocol
}
...
...
Doc/lib/liboperator.tex
View file @
b91e934c
% Contributed by Skip Montanaro, from the module's doc strings.
\section
{
Built-in Module
\module
{
operator
}}
\label
{
module-operator
}
\bimodindex
{
operator
}
\declaremodule
{
builtin
}{
operator
}
\modulesynopsis
{
All Python's standard operators as built-in functions.
}
The
\module
{
operator
}
module exports a set of functions implemented in C
corresponding to the intrinsic operators of Python. For example,
...
...
Doc/lib/libos.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
os
}}
\label
{
module-os
}
\stmodindex
{
os
}
\declaremodule
{
standard
}{
os
}
\modulesynopsis
{
Miscellaneous OS interfaces.
}
This module provides a more portable way of using operating system
(OS) dependent functionality than importing an OS dependent built-in
...
...
Doc/lib/libpanel.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
panel
}}
\label
{
module-panel
}
\stmodindex
{
panel
}
\declaremodule
{
standard
}{
panel
}
\modulesynopsis
{
None
}
\strong
{
Please note:
}
The FORMS library, to which the
\code
{
fl
}
\refbimodindex
{
fl
}
module described above interfaces, is a
...
...
@@ -30,8 +32,10 @@ or
\code
{
panel.defpanellist()
}
.
\section
{
Standard Module
\module
{
panelparser
}}
\label
{
module-panelparser
}
\stmodindex
{
panelparser
}
\declaremodule
{
standard
}{
panelparser
}
\modulesynopsis
{
None
}
This module defines a self-contained parser for S-expressions as output
by the Panel Editor (which is written in Scheme so it can't help writing
...
...
@@ -46,8 +50,10 @@ For more details, read the module file.
% XXXXJH should be funcdesc, I think
\section
{
Built-in Module
\module
{
pnl
}}
\label
{
module-pnl
}
\bimodindex
{
pnl
}
\declaremodule
{
builtin
}{
pnl
}
\modulesynopsis
{
None
}
This module provides access to the
\emph
{
Panel Library
}
...
...
Doc/lib/libparser.tex
View file @
b91e934c
...
...
@@ -10,8 +10,11 @@
%
\section
{
Built-in Module
\module
{
parser
}}
\label
{
module-parser
}
\bimodindex
{
parser
}
\declaremodule
{
builtin
}{
parser
}
\modulesynopsis
{
Retrieve and submit parse trees from and to the runtime support
environment.
}
\index
{
parsing!Python source code
}
The
\module
{
parser
}
module provides an interface to Python's internal
...
...
Doc/lib/libpdb.tex
View file @
b91e934c
\chapter
{
The Python Debugger
}
\label
{
module-pdb
}
\stmodindex
{
pdb
}
\declaremodule
{
standard
}{
pdb
}
\modulesynopsis
{
None
}
\index
{
debugging
}
...
...
Doc/lib/libpickle.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
pickle
}}
\label
{
module-pickle
}
\stmodindex
{
pickle
}
\declaremodule
{
standard
}{
pickle
}
\modulesynopsis
{
Convert Python objects to streams of bytes and back.
}
\index
{
persistency
}
\indexii
{
persistent
}{
objects
}
\indexii
{
serializing
}{
objects
}
...
...
@@ -273,8 +275,10 @@ registration}
\section
{
Built-in Module
\module
{
cPickle
}}
\bimodindex
{
cPickle
}
\label
{
module-cPickle
}
\declaremodule
{
builtin
}{
cPickle
}
\modulesynopsis
{
Faster version of
\module
{
pickle
}
, but not subclassable.
}
% This section was written by Fred L. Drake, Jr. <fdrake@acm.org>
...
...
Doc/lib/libpopen2.tex
View file @
b91e934c
...
...
@@ -3,8 +3,10 @@
% Drake, Jr. <fdrake@acm.org>.
\section
{
Standard Module
\module
{
popen2
}}
\label
{
module-popen2
}
\stmodindex
{
popen2
}
\declaremodule
{
standard
}{
popen2
}
\modulesynopsis
{
None
}
This module allows you to spawn processes and connect their
input/output/error pipes and obtain their return codes.
...
...
Doc/lib/libpoplib.tex
View file @
b91e934c
...
...
@@ -4,8 +4,10 @@
%the imaplib ``chapter''.
\section
{
Standard Module
\module
{
poplib
}}
\stmodindex
{
poplib
}
\label
{
module-poplib
}
\declaremodule
{
standard
}{
poplib
}
\modulesynopsis
{
POP3 protocol client (requires sockets).
}
\indexii
{
POP3
}{
protocol
}
This module defines a class,
\class
{
POP3
}
, which encapsulates a
...
...
Doc/lib/libposix.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
posix
}}
\label
{
module-posix
}
\bimodindex
{
posix
}
\declaremodule
{
builtin
}{
posix
}
\modulesynopsis
{
The most common
\POSIX
{}
system calls (normally used via module
\module
{
os
}
).
}
This module provides access to operating system functionality that is
standardized by the
\C
{}
Standard and the
\POSIX
{}
standard (a thinly
...
...
Doc/lib/libposixfile.tex
View file @
b91e934c
% Manual text and implementation by Jaap Vermeulen
\section
{
Standard Module
\module
{
posixfile
}}
\label
{
module-posixfile
}
\bimodindex
{
posixfile
}
\declaremodule
{
builtin
}{
posixfile
}
\modulesynopsis
{
A file-like object with support for locking.
}
\indexii
{
\POSIX
{}}{
file object
}
\emph
{
Note:
}
This module will become obsolete in a future release.
...
...
Doc/lib/libppath.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
posixpath
}}
\label
{
module-posixpath
}
\stmodindex
{
posixpath
}
\declaremodule
{
standard
}{
posixpath
}
\modulesynopsis
{
Common
\POSIX
{}
pathname manipulations.
}
This module implements some useful functions on
\POSIX
{}
pathnames.
...
...
Doc/lib/libpprint.tex
View file @
b91e934c
%% Author: Fred L. Drake, Jr. <fdrake@acm.org>
\section
{
Standard Module
\module
{
pprint
}}
\stmodindex
{
pprint
}
\label
{
module-pprint
}
\declaremodule
{
standard
}{
pprint
}
\modulesynopsis
{
Data pretty printer.
}
The
\module
{
pprint
}
module provides a capability to ``pretty-print''
arbitrary Python data structures in a form which can be used as input
...
...
Doc/lib/libprofile.tex
View file @
b91e934c
...
...
@@ -255,8 +255,10 @@ of algorithms to be directly compared to iterative implementations.
\section
{
Reference Manual
}
\stmodindex
{
profile
}
\label
{
module-profile
}
\declaremodule
{
standard
}{
profile
}
\modulesynopsis
{
None
}
The primary entry point for the profiler is the global function
...
...
Doc/lib/libpwd.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
pwd
}}
\label
{
module-pwd
}
\declaremodule
{
builtin
}{
pwd
}
\modulesynopsis
{
The password database (
\function
{
getpwnam()
}
and friends).
}
\bimodindex
{
pwd
}
This module provides access to the
\UNIX
{}
password database.
It is available on all
\UNIX
{}
versions.
...
...
Doc/lib/libpython.tex
View file @
b91e934c
...
...
@@ -5,80 +5,4 @@ The modules described in this chapter provide a wide range of services
related to the Python interpreter and its interaction with its
environment. Here's an overview:
\begin{description}
\item
[sys]
--- Access system specific parameters and functions.
\item
[types]
--- Names for all built-in types.
\item
[UserDict]
--- Class wrapper for dictionary objects.
\item
[UserList]
--- Class wrapper for list objects.
\item
[operator]
--- All Python's standard operators as built-in functions.
\item
[traceback]
--- Print or retrieve a stack traceback.
\item
[pickle]
--- Convert Python objects to streams of bytes and back.
\item
[cPickle]
--- Faster version of
\module
{
pickle
}
, but not subclassable.
\item
[copy_reg]
--- Register
\module
{
pickle
}
support functions.
\item
[shelve]
--- Python object persistency.
\item
[copy]
--- Shallow and deep copy operations.
\item
[marshal]
--- Convert Python objects to streams of bytes and back (with
different constraints).
\item
[imp]
--- Access the implementation of the
\keyword
{
import
}
statement.
\item
[parser]
--- Retrieve and submit parse trees from and to the runtime support
environment.
\item
[symbol]
--- Constants representing internal nodes of the parse tree.
\item
[token]
--- Constants representing terminal nodes of the parse tree.
\item
[keyword]
--- Test whether a string is a keyword in the Python language.
\item
[code]
--- Code object services.
\item
[pprint]
--- Data pretty printer.
\item
[dis]
--- Disassembler.
\item
[site]
--- A standard way to reference site-specific modules.
\item
[user]
--- A standard way to reference user-specific modules.
\item
[__builtin__]
--- The set of built-in functions.
\item
[__main__]
--- The environment where the top-level script is run.
\end{description}
\localmoduletable
Doc/lib/libqueue.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
Queue
}}
\stmodindex
{
Queue
}
\label
{
module-Queue
}
\declaremodule
{
standard
}{
Queue
}
\modulesynopsis
{
A stynchronized queue class.
}
The
\module
{
Queue
}
module implements a multi-producer, multi-consumer
...
...
Doc/lib/libquopri.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
quopri
}}
\label
{
module-quopri
}
\stmodindex
{
quopri
}
\declaremodule
{
standard
}{
quopri
}
\modulesynopsis
{
Encode/decode binary files using the MIME quoted-printable encoding.
}
This module performs quoted-printable transport encoding and decoding,
as defined in
\rfc
{
1521
}
: ``MIME (Multipurpose Internet Mail Extensions)
...
...
Doc/lib/librand.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
rand
}}
\label
{
module-rand
}
\stmodindex
{
rand
}
\declaremodule
{
standard
}{
rand
}
\modulesynopsis
{
None
}
The
\code
{
rand
}
module simulates the C library's
\code
{
rand()
}
interface, though the results aren't necessarily compatible with any
...
...
Doc/lib/librandom.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
random
}}
\label
{
module-random
}
\stmodindex
{
random
}
\declaremodule
{
standard
}{
random
}
\modulesynopsis
{
Generate pseudo-random numbers with various common distributions.
}
This module implements pseudo-random number generators for various
distributions: on the real line, there are functions to compute normal
...
...
Doc/lib/libre.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
re
}}
\label
{
module-re
}
\declaremodule
{
builtin
}{
re
}
\modulesynopsis
{
New Perl-style regular expression search and match operations.
}
\bimodindex
{
re
}
This module provides regular expression matching operations similar to
those found in Perl. It's 8-bit clean: the strings being processed
...
...
Doc/lib/libregex.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
regex
}}
\label
{
module-regex
}
\bimodindex
{
regex
}
\declaremodule
{
builtin
}{
regex
}
\modulesynopsis
{
Regular expression search and match operations.
}
This module provides regular expression matching operations similar to
those found in Emacs.
...
...
Doc/lib/libregsub.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
regsub
}}
\label
{
module-regsub
}
\stmodindex
{
regsub
}
\declaremodule
{
standard
}{
regsub
}
\modulesynopsis
{
Substitution and splitting operations that use regular expressions.
}
This module defines a number of functions useful for working with
regular expressions (see built-in module
\code
{
regex
}
).
...
...
Doc/lib/libresource.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
resource
}}
\label
{
module-resource
}
\declaremodule
{
builtin
}{
resource
}
\modulesynopsis
{
An interface to provide resource usage information on the current
process.
}
\bimodindex
{
resource
}
This module provides basic mechanisms for measuring and controlling
system resources utilized by a program.
...
...
Doc/lib/librestricted.tex
View file @
b91e934c
...
...
@@ -63,15 +63,7 @@ class and instance object attribute \code{__dict__} are unavailable.
Two modules provide the framework for setting up restricted execution
environments:
\begin{description}
\item
[rexec]
--- Basic restricted execution framework.
\item
[Bastion]
--- Providing restricted access to objects.
\end{description}
\localmoduletable
\begin{seealso}
\seetext
{
Andrew Kuchling, ``Restricted Execution HOWTO.'' Available
...
...
Doc/lib/librexec.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
rexec
}}
\label
{
module-rexec
}
\stmodindex
{
rexec
}
\declaremodule
{
standard
}{
rexec
}
\modulesynopsis
{
Basic restricted execution framework.
}
This module contains the
\class
{
RExec
}
class, which supports
...
...
Doc/lib/librfc822.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
rfc822
}}
\label
{
module-rfc822
}
\stmodindex
{
rfc822
}
\declaremodule
{
standard
}{
rfc822
}
\modulesynopsis
{
Parse
\rfc
{
822
}
style mail headers.
}
%\index{RFC!RFC 822}
This module defines a class,
\class
{
Message
}
, which represents a
collection of ``email headers'' as defined by the Internet standard
...
...
Doc/lib/librgbimg.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
rgbimg
}}
\label
{
module-rgbimg
}
\bimodindex
{
rgbimg
}
\declaremodule
{
builtin
}{
rgbimg
}
\modulesynopsis
{
Read and write image files in ``SGI RGB'' format (the module is
\emph
{
not
}
SGI specific though)!
}
The
\module
{
rgbimg
}
module allows Python programs to access SGI imglib image
files (also known as
\file
{
.rgb
}
files). The module is far from
...
...
Doc/lib/librotor.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
rotor
}}
\label
{
module-rotor
}
\bimodindex
{
rotor
}
\declaremodule
{
builtin
}{
rotor
}
\modulesynopsis
{
Enigma-like encryption and decryption.
}
This module implements a rotor-based encryption algorithm, contributed by
Lance Ellinghouse
\index
{
Ellinghouse, Lance
}
. The design is derived
...
...
Doc/lib/libselect.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
select
}}
\label
{
module-select
}
\bimodindex
{
select
}
\declaremodule
{
builtin
}{
select
}
\modulesynopsis
{
Wait for I/O completion on multiple streams.
}
This module provides access to the function
\cfunction
{
select()
}
available in most
\UNIX
{}
versions. It defines the following:
...
...
Doc/lib/libsgi.tex
View file @
b91e934c
...
...
@@ -3,3 +3,5 @@
The modules described in this chapter provide interfaces to features
that are unique to SGI's IRIX operating system (versions 4 and 5).
\localmoduletable
Doc/lib/libsgmllib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
sgmllib
}}
\label
{
module-sgmllib
}
\stmodindex
{
sgmllib
}
\declaremodule
{
standard
}{
sgmllib
}
\modulesynopsis
{
Only as much of an SGML parser as needed to parse HTML.
}
\index
{
SGML
}
This module defines a class
\class
{
SGMLParser
}
which serves as the
...
...
Doc/lib/libshelve.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
shelve
}}
\label
{
module-shelve
}
\stmodindex
{
shelve
}
\declaremodule
{
standard
}{
shelve
}
\modulesynopsis
{
Python object persistency.
}
A ``shelf'' is a persistent, dictionary-like object. The difference
with ``dbm'' databases is that the values (not the keys!) in a shelf
...
...
Doc/lib/libsignal.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
signal
}}
\label
{
module-signal
}
\declaremodule
{
builtin
}{
signal
}
\modulesynopsis
{
Set handlers for asynchronous events.
}
\bimodindex
{
signal
}
This module provides mechanisms to use signal handlers in Python.
Some general rules for working with signals handlers:
...
...
Doc/lib/libsite.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
site
}}
\label
{
module-site
}
\stmodindex
{
site
}
\declaremodule
{
standard
}{
site
}
\modulesynopsis
{
A standard way to reference site-specific modules.
}
\strong
{
This module is automatically imported during initialization.
}
...
...
Doc/lib/libsmtplib.tex
View file @
b91e934c
% Documentation by ESR
\section
{
Standard Module
\module
{
smtplib
}}
\stmodindex
{
smtplib
}
\label
{
module-smtplib
}
\declaremodule
{
standard
}{
smtplib
}
\modulesynopsis
{
SMTP protocol client (requires sockets).
}
\indexii
{
SMTP
}{
protocol
}
\index
{
Simple Mail Transfer Protocol
}
...
...
Doc/lib/libsocket.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
socket
}}
\label
{
module-socket
}
\bimodindex
{
socket
}
\declaremodule
{
builtin
}{
socket
}
\modulesynopsis
{
Low-level networking interface.
}
This module provides access to the BSD
\emph
{
socket
}
interface.
It is available on
\UNIX
{}
systems that support this interface.
...
...
Doc/lib/libsocksvr.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
SocketServer
}}
\label
{
module-SocketServer
}
\stmodindex
{
SocketServer
}
\declaremodule
{
standard
}{
SocketServer
}
\modulesynopsis
{
A framework for network servers.
}
The
\module
{
SocketServer
}
module simplifies the task of writing network
servers.
...
...
Doc/lib/libsomeos.tex
View file @
b91e934c
...
...
@@ -7,37 +7,4 @@ The interfaces are generally modelled after the \UNIX{} or \C{}
interfaces but they are available on some other systems as well
(e.g. Windows or NT). Here's an overview:
\begin{description}
\item
[signal]
--- Set handlers for asynchronous events.
\item
[socket]
--- Low-level networking interface.
\item
[select]
--- Wait for I/O completion on multiple streams.
\item
[thread]
--- Create multiple threads of control within one namespace.
\item
[threading]
--- Higher level threading interface; use in preference of module
\module
{
thread
}
.
\item
[Queue]
--- A stynchronized queue class.
\item
[anydbm]
--- Generic interface to DBM-style database modules.
\item
[whichdb]
--- Guess which DBM-style module created a given database.
\item
[zlib]
\item
[gzip]
--- Compression and decompression compatible with the
\program
{
gzip
}
program (
\module
{
zlib
}
is the low-level interface,
\module
{
gzip
}
the high-level one).
\end{description}
\localmoduletable
Doc/lib/libsoundex.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
soundex
}}
\label
{
module-soundex
}
\bimodindex
{
soundex
}
\declaremodule
{
builtin
}{
soundex
}
\modulesynopsis
{
None
}
The soundex algorithm takes an English word, and returns an
...
...
Doc/lib/libstat.tex
View file @
b91e934c
% By Skip Montanaro
\section
{
Standard Module
\module
{
stat
}}
\stmodindex
{
stat
}
\label
{
module-stat
}
\declaremodule
{
standard
}{
stat
}
\modulesynopsis
{
Constants and functions for interpreting the results of
\function
{
os.stat()
}
,
\function
{
os.lstat()
}
and
\function
{
os.fstat()
}
.
}
The
\code
{
stat
}
module defines constants and functions for interpreting the
results of
\code
{
os.stat()
}
and
\code
{
os.lstat()
}
(if they exist).
...
...
Doc/lib/libstdwin.tex
View file @
b91e934c
...
...
@@ -15,8 +15,10 @@ under X11, Win32 for Windows and Windows NT, and a collection of
native toolkit interfaces for the Macintosh.
\section
{
Built-in Module
\module
{
stdwin
}}
\label
{
module-stdwin
}
\bimodindex
{
stdwin
}
\declaremodule
{
builtin
}{
stdwin
}
\modulesynopsis
{
None
}
This module defines several new object types and functions that
provide access to the functionality of STDWIN.
...
...
@@ -776,8 +778,10 @@ main()
\end{verbatim}
%
\section
{
Standard Module
\module
{
stdwinevents
}}
\label
{
module-stdwinevents
}
\stmodindex
{
stdwinevents
}
\declaremodule
{
standard
}{
stdwinevents
}
\modulesynopsis
{
None
}
This module defines constants used by STDWIN for event types
(
\code
{
WE
_
ACTIVATE
}
etc.), command codes (
\code
{
WC
_
LEFT
}
etc.)
...
...
@@ -791,8 +795,10 @@ Suggested usage is
\end{verbatim}
%
\section
{
Standard Module
\module
{
rect
}}
\label
{
module-rect
}
\stmodindex
{
rect
}
\declaremodule
{
standard
}{
rect
}
\modulesynopsis
{
None
}
This module contains useful operations on rectangles.
A rectangle is defined as in module
...
...
Doc/lib/libstring.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
string
}}
\label
{
module-string
}
\stmodindex
{
string
}
\declaremodule
{
standard
}{
string
}
\modulesynopsis
{
Common string operations.
}
This module defines some constants useful for checking character
classes and some useful string functions. See the module
...
...
Doc/lib/libstrings.tex
View file @
b91e934c
...
...
@@ -4,27 +4,4 @@
The modules described in this chapter provide a wide range of string
manipulation operations. Here's an overview:
\begin{description}
\item
[string]
--- Common string operations.
\item
[re]
--- New Perl-style regular expression search and match operations.
\item
[regex]
--- Regular expression search and match operations.
\item
[regsub]
--- Substitution and splitting operations that use regular expressions.
\item
[struct]
--- Interpret strings as packed binary data.
\item
[StringIO]
--- Read and write strings as if they were files.
\item
[cStringIO]
--- Faster version of
\module
{
StringIO
}
, but not subclassable.
\end{description}
\localmoduletable
Doc/lib/libstrio.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
StringIO
}}
\label
{
module-StringIO
}
\declaremodule
{
standard
}{
StringIO
}
\modulesynopsis
{
Read and write strings as if they were files.
}
\stmodindex
{
StringIO
}
This module implements a file-like class,
\class
{
StringIO
}
,
that reads and writes a string buffer (also known as
\emph
{
memory
...
...
@@ -27,8 +29,10 @@ Free the memory buffer.
\section
{
Built-in Module
\module
{
cStringIO
}}
\bimodindex
{
cStringIO
}
\label
{
module-cStringIO
}
\declaremodule
{
builtin
}{
cStringIO
}
\modulesynopsis
{
Faster version of
\module
{
StringIO
}
, but not subclassable.
}
% This section was written by Fred L. Drake, Jr. <fdrake@acm.org>
...
...
Doc/lib/libstruct.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
struct
}}
\label
{
module-struct
}
\bimodindex
{
struct
}
\declaremodule
{
builtin
}{
struct
}
\modulesynopsis
{
Interpret strings as packed binary data.
}
\indexii
{
C@
\C
{}}{
structures
}
This module performs conversions between Python values and C
...
...
Doc/lib/libsunaudio.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
sunaudiodev
}}
\label
{
module-sunaudiodev
}
\bimodindex
{
sunaudiodev
}
\declaremodule
{
builtin
}{
sunaudiodev
}
\modulesynopsis
{
None
}
This module allows you to access the sun audio interface. The sun
audio hardware is capable of recording and playing back audio data
...
...
Doc/lib/libsymbol.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
symbol
}}
\label
{
module-symbol
}
\stmodindex
{
symbol
}
\declaremodule
{
standard
}{
symbol
}
\modulesynopsis
{
Constants representing internal nodes of the parse tree.
}
This module provides constants which represent the numeric values of
internal nodes of the parse tree. Unlike most Python constants, these
...
...
Doc/lib/libsys.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
sys
}}
\label
{
module-sys
}
\declaremodule
{
builtin
}{
sys
}
\modulesynopsis
{
Access system specific parameters and functions.
}
\bimodindex
{
sys
}
This module provides access to some variables used or maintained by the
interpreter and to functions that interact strongly with the interpreter.
It is always available.
...
...
@@ -13,7 +14,7 @@ It is always available.
dependent whether this is a full pathname or not).
If the command was executed using the
\samp
{
-c
}
command line option
to the interpreter,
\code
{
argv[0]
}
is set to the string
\code
{
"-c"
}
.
\code
{
'-c'
}
.
If no script name was passed to the Python interpreter,
\code
{
argv
}
has zero length.
\end{datadesc}
...
...
@@ -81,13 +82,13 @@ the other two are undefined.
\begin{datadesc}
{
exec
_
prefix
}
A string giving the site-specific
directory prefix where the platform-dependent Python files are
installed; by default, this is also
\code
{
"/usr/local"
}
. This can be
installed; by default, this is also
\code
{
'/usr/local'
}
. This can be
set at build time with the
\code
{
-
}
\code
{
-exec-prefix
}
argument to the
\program
{
configure
}
script. Specifically, all configuration files
(e.g. the
\file
{
config.h
}
header file) are installed in the directory
\code
{
exec
_
prefix +
"/lib/python
\var
{
version
}
/config"
}
, and shared library
\code
{
exec
_
prefix +
'/lib/python
\var
{
version
}
/config'
}
, and shared library
modules are installed in
\code
{
exec
_
prefix +
"/lib/python
\var
{
version
}
/lib-dynload"
}
,
\code
{
exec
_
prefix +
'/lib/python
\var
{
version
}
/lib-dynload'
}
,
where
\var
{
version
}
is equal to
\code
{
version[:3]
}
.
\end{datadesc}
...
...
@@ -116,7 +117,7 @@ interpreter, on systems where this makes sense.
\begin{funcdesc}
{
getrefcount
}{
object
}
Return the reference count of the
\var
{
object
}
. The count returned is
generally one higher than you might expect, because it includes the
(temporary) reference as an argument to
\
code
{
getrefcount()
}
.
(temporary) reference as an argument to
\
function
{
getrefcount()
}
.
\end{funcdesc}
\begin{datadesc}
{
last
_
type
}
...
...
@@ -157,7 +158,7 @@ complement binary arithmetic.
\begin{datadesc}
{
path
}
\indexiii
{
module
}{
search
}{
path
}
A list of strings that specifies the search path for modules.
Initialized from the environment variable
\
code
{
\$
PYTHONPATH
}
, or an
Initialized from the environment variable
\
envvar
{
PYTHONPATH
}
, or an
installation-dependent default.
The first item of this list,
\code
{
path[0]
}
, is the
...
...
@@ -167,7 +168,7 @@ interpreter is invoked interactively or if the script is read from
standard input),
\code
{
path[0]
}
is the empty string, which directs
Python to search modules in the current directory first. Notice that
the script directory is inserted
\emph
{
before
}
the entries inserted as
a result of
\
code
{
\$
PYTHONPATH
}
.
a result of
\
envvar
{
PYTHONPATH
}
.
\end{datadesc}
\begin{datadesc}
{
platform
}
...
...
@@ -179,12 +180,12 @@ components to \code{path}, for instance.
\begin{datadesc}
{
prefix
}
A string giving the site-specific directory prefix where the platform
independent Python files are installed; by default, this is the string
\code
{
"/usr/local"
}
. This can be set at build time with the
\code
{
'/usr/local'
}
. This can be set at build time with the
\code
{
-
}
\code
{
-prefix
}
argument to the
\program
{
configure
}
script. The main
collection of Python library modules is installed in the directory
\code
{
prefix +
"/lib/python
\var
{
version
}
"
}
while the platform
\code
{
prefix +
'/lib/python
\var
{
version
}
'
}
while the platform
independent header files (all except
\file
{
config.h
}
) are stored in
\code
{
prefix +
"/include/python
\var
{
version
}
"
}
,
\code
{
prefix +
'/include/python
\var
{
version
}
'
}
,
where
\var
{
version
}
is equal to
\code
{
version[:3]
}
.
\end{datadesc}
...
...
Doc/lib/libsyslog.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
syslog
}}
\label
{
module-syslog
}
\bimodindex
{
syslog
}
\declaremodule
{
builtin
}{
syslog
}
\modulesynopsis
{
An interface to the
\UNIX
{}
syslog library routines.
}
This module provides an interface to the
\UNIX
{}
\code
{
syslog
}
library
routines. Refer to the
\UNIX
{}
manual pages for a detailed description
...
...
Doc/lib/libtempfile.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
tempfile
}}
\label
{
module-tempfile
}
\stmodindex
{
tempfile
}
\declaremodule
{
standard
}{
tempfile
}
\modulesynopsis
{
Generate temporary file names.
}
\indexii
{
temporary
}{
file name
}
\indexii
{
temporary
}{
file
}
...
...
Doc/lib/libtemplate.tex
View file @
b91e934c
...
...
@@ -4,29 +4,27 @@
% ==== 1. ====
% Choose one of the following section headers and index entries;
% \section generates the section header,
% \bimodindex or \stmodindex generates an index entry for this
% module. Note that these should only be used for the defining entry
% for the module. Other references to the module should use
% \refbimodindex, \refstmodindex, \refexmodindex or \refmodindex, as
% appropriate. (Just prepend "ref" to the csname of the \*modindex
% macro used in the module definition.)
%
% The \label{module-spam} line is for the \seealso command.
% \section generates the section header, \declmodule produces the
% appropriate index entry for this module. Note that these should
% only be used for the defining entry for the module. Other
% references to the module should use \refbimodindex, \refstmodindex,
% \refexmodindex or \refmodindex, as appropriate.
\section
{
Built-in Module
\module
{
spam
}}
% If implemented in C, in
\
bimodindex
{
spam
}
% standard library
\
declaremodule
{
builtin
}{
spam
}
% standard library
\section
{
Standard Module
\module
{
spam
}}
% If implemented in Python, in
\
stmodindex
{
spam
}
% standard library
\
declaremodule
{
standard
}{
spam
}
% standard library
\section
{
Extension Module
\module
{
spam
}}
% If implemented in C, but not
\
exmodindex
{
spam
}
% in standard library
\
declaremodule
{
extension
}{
spam
}
% in standard library
\section
{
Module
\module
{
spam
}}
% If implemented in Python, but not
\modindex
{
spam
}
% in standard library
\declaremodule
{}{
spam
}
% in standard library
\modulesynopsis
{
This is a one-line descrition, for the chapter header.
}
\label
{
module-spam
}
% ==== 2. ====
% Give a short overview of what the module does.
...
...
Doc/lib/libtermios.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
termios
}}
\label
{
module-termios
}
\bimodindex
{
termios
}
\declaremodule
{
builtin
}{
termios
}
\modulesynopsis
{
\POSIX
{}
style tty control.
}
\indexii
{
\POSIX
{}}{
I/O control
}
\indexii
{
tty
}{
I/O control
}
...
...
@@ -93,8 +95,10 @@ def getpass(prompt = "Password: "):
\end{verbatim}
\section
{
Standard Module
\module
{
TERMIOS
}}
\label
{
module-TERMIOSuppercase
}
\stmodindex
{
TERMIOS
}
\declaremodule
[TERMIOSuppercase]
{
standard
}{
TERMIOS
}
\modulesynopsis
{
The symbolic constants required to use the
\module
{
termios
}
module.
}
\indexii
{
\POSIX
{}}{
I/O control
}
\indexii
{
tty
}{
I/O control
}
...
...
Doc/lib/libthread.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
thread
}}
\label
{
module-thread
}
\bimodindex
{
thread
}
\declaremodule
{
builtin
}{
thread
}
\modulesynopsis
{
Create multiple threads of control within one namespace.
}
This module provides low-level primitives for working with multiple
threads (a.k.a.
\ \dfn
{
light-weight processes
}
or
\dfn
{
tasks
}
) --- multiple
...
...
Doc/lib/libthreading.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
threading
}}
\label
{
module-threading
}
\stmodindex
{
threading
}
\declaremodule
{
standard
}{
threading
}
\modulesynopsis
{
None
}
This module constructs higher-level threading interfaces on top of the
lower level
...
...
Doc/lib/libtime.tex
View file @
b91e934c
\section
{
Built-in Module
\module
{
time
}}
\label
{
module-time
}
\bimodindex
{
time
}
\declaremodule
{
builtin
}{
time
}
\modulesynopsis
{
Time access and conversions.
}
This module provides various time-related functions.
It is always available.
...
...
Doc/lib/libtoken.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
token
}}
\label
{
module-token
}
\stmodindex
{
token
}
\declaremodule
{
standard
}{
token
}
\modulesynopsis
{
Constants representing terminal nodes of the parse tree.
}
This module provides constants which represent the numeric values of
leaf nodes of the parse tree (terminal tokens). Refer to the file
...
...
Doc/lib/libtraceback.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
traceback
}}
\label
{
module-traceback
}
\stmodindex
{
traceback
}
\declaremodule
{
standard
}{
traceback
}
\modulesynopsis
{
Print or retrieve a stack traceback.
}
This module provides a standard interface to extract, format and print
...
...
Doc/lib/libtypes2.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
types
}}
\label
{
module-types
}
\stmodindex
{
types
}
\declaremodule
{
standard
}{
types
}
\modulesynopsis
{
Names for all built-in types.
}
This module defines names for all object types that are used by the
...
...
Doc/lib/libunix.tex
View file @
b91e934c
...
...
@@ -5,54 +5,4 @@ The modules described in this chapter provide interfaces to features
that are unique to the
\UNIX
{}
operating system, or in some cases to
some or many variants of it. Here's an overview:
\begin{description}
\item
[posix]
--- The most common
\POSIX
{}
system calls (normally used via module
\module
{
os
}
).
\item
[posixpath]
--- Common
\POSIX
{}
pathname manipulations (normally used via
\code
{
os.path
}
).
\item
[pwd]
--- The password database (
\function
{
getpwnam()
}
and friends).
\item
[grp]
--- The group database (
\function
{
getgrnam()
}
and friends).
\item
[crypt]
--- The
\cfunction
{
crypt()
}
function used to check
\UNIX
{}
passwords.
\item
[dbm]
--- The standard ``database'' interface, based on
\code
{
ndbm
}
.
\item
[gdbm]
--- GNU's reinterpretation of dbm.
\item
[termios]
---
\POSIX
{}
style tty control.
\item
[TERMIOS]
--- The symbolic constants required to use the
\module
{
termios
}
module.
\item
[fcntl]
--- The
\function
{
fcntl()
}
and
\function
{
ioctl()
}
system calls.
\item
[posixfile]
--- A file-like object with support for locking.
\item
[resource]
--- An interface to provide resource usage information on the current
process.
\item
[syslog]
--- An interface to the
\UNIX
{}
\code
{
syslog
}
library routines.
\item
[stat]
--- Constants and functions for interpreting the results of
\function
{
os.stat()
}
,
\function
{
os.lstat()
}
and
\function
{
os.fstat()
}
.
\item
[commands]
--- Wrapper functions for
\function
{
os.popen()
}
.
\end{description}
\localmoduletable
Doc/lib/liburllib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
urllib
}}
\label
{
module-urllib
}
\stmodindex
{
urllib
}
\declaremodule
{
standard
}{
urllib
}
\modulesynopsis
{
Open an arbitrary object given by URL (requires sockets).
}
\index
{
WWW
}
\index
{
World-Wide Web
}
\index
{
URL
}
...
...
Doc/lib/liburlparse.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
urlparse
}}
\label
{
module-urlparse
}
\stmodindex
{
urlparse
}
\declaremodule
{
standard
}{
urlparse
}
\modulesynopsis
{
Parse a URL string into a tuple (addressing scheme identifier, network
location, path, parameters, query string, fragment identifier).
}
\index
{
WWW
}
\index
{
World-Wide Web
}
\index
{
URL
}
...
...
Doc/lib/libuser.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
user
}}
\label
{
module-user
}
\stmodindex
{
user
}
\declaremodule
{
standard
}{
user
}
\modulesynopsis
{
A standard way to reference user-specific modules.
}
\indexii
{
.pythonrc.py
}{
file
}
\indexiii
{
user
}{
configuration
}{
file
}
...
...
Doc/lib/libuserdict.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
UserDict
}}
\stmodindex
{
UserDict
}
\label
{
module-UserDict
}
\declaremodule
{
standard
}{
UserDict
}
\modulesynopsis
{
Class wrapper for dictionary objects.
}
This module defines a class that acts as a wrapper around
dictionary objects. It is a useful base class for
...
...
@@ -23,8 +25,10 @@ class.
\section
{
Standard Module
\module
{
UserList
}}
\stmodindex
{
UserList
}
\label
{
module-UserList
}
\declaremodule
{
standard
}{
UserList
}
\modulesynopsis
{
Class wrapper for list objects.
}
This module defines a class that acts as a wrapper around
list objects. It is a useful base class for
...
...
Doc/lib/libuu.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
uu
}}
\label
{
module-uu
}
\stmodindex
{
uu
}
\declaremodule
{
standard
}{
uu
}
\modulesynopsis
{
Encode and decode files in uuencode format.
}
This module encodes and decodes files in uuencode format, allowing
arbitrary binary data to be transferred over ascii-only connections.
...
...
Doc/lib/libwhichdb.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
whichdb
}}
\label
{
module-whichdb
}
\stmodindex
{
whichdb
}
\declaremodule
{
standard
}{
whichdb
}
\modulesynopsis
{
Guess which DBM-style module created a given database.
}
The single function in this module attempts to guess which of the
several simple database modules available--dbm, gdbm, or
...
...
Doc/lib/libwhrandom.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
whrandom
}}
\label
{
module-whrandom
}
\stmodindex
{
whrandom
}
\declaremodule
{
standard
}{
whrandom
}
\modulesynopsis
{
Floating point pseudo-random number generator.
}
This module implements a Wichmann-Hill pseudo-random number generator
class that is also named
\code
{
whrandom
}
. Instances of the
...
...
Doc/lib/libwww.tex
View file @
b91e934c
...
...
@@ -12,97 +12,4 @@ of these modules require the presence of the system-dependent module
\code
{
sockets
}
\refbimodindex
{
socket
}
, which is currently only fully
supported on
\UNIX
{}
and Windows NT. Here is an overview:
\begin{description}
\item
[cgi]
--- Common Gateway Interface, used to interpret forms in server-side
scripts.
\item
[urllib]
--- Open an arbitrary object given by URL (requires sockets).
\item
[httplib]
--- HTTP protocol client (requires sockets).
\item
[ftplib]
--- FTP protocol client (requires sockets).
\item
[gopherlib]
--- Gopher protocol client (requires sockets).
\item
[poplib]
--- POP3 protocol client (requires sockets).
\item
[imaplib]
--- IMAP4 protocol client (requires sockets).
\item
[nntplib]
--- NNTP protocol client (requires sockets).
\item
[smtplib]
--- SMTP protocol client (requires sockets).
\item
[urlparse]
--- Parse a URL string into a tuple (addressing scheme identifier, network
location, path, parameters, query string, fragment identifier).
\item
[sgmllib]
--- Only as much of an SGML parser as needed to parse HTML.
\item
[htmllib]
--- A parser for HTML documents.
\item
[xmllib]
--- A parser for XML documents.
\item
[formatter]
--- Generic output formatter and device interface.
\item
[rfc822]
--- Parse
\rfc
{
822
}
style mail headers.
\item
[mimetools]
--- Tools for parsing MIME style message bodies.
\item
[multifile]
--- Make each part of a MIME multipart message ``feel'' like a regular file.
\item
[binhex]
--- Encode and decode files in binhex4 format.
\item
[uu]
--- Encode and decode files in uuencode format.
\item
[binascii]
--- Tools for converting between binary and various ascii-encoded binary
representation
\item
[xdrlib]
--- The External Data Representation Standard as described in
\rfc
{
1014
}
,
written by Sun Microsystems, Inc. June 1987.
\item
[mailcap]
--- Mailcap file handling. See
\rfc
{
1524
}
.
\item
[mimetypes]
--- Mapping of filename extensions to MIME types.
\item
[base64]
--- Encode/decode binary files using the MIME base64 encoding.
\item
[quopri]
--- Encode/decode binary files using the MIME quoted-printable encoding.
\item
[SocketServer]
--- A framework for network servers.
\item
[mailbox]
--- Read various mailbox formats.
\item
[mimify]
--- Mimification and unmimification of mail messages.
\item
[BaseHTTPServer]
--- Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
\end{description}
\localmoduletable
Doc/lib/libxdrlib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
xdrlib
}}
\label
{
module-xdrlib
}
\stmodindex
{
xdrlib
}
\declaremodule
{
standard
}{
xdrlib
}
\modulesynopsis
{
The External Data Representation Standard as described
in
\rfc
{
1014
}
, written by Sun Microsystems, Inc. June 1987.
}
\index
{
XDR
}
\index
{
External Data Representation
}
The
\module
{
xdrlib
}
module supports the External Data Representation
Standard as described in
\rfc
{
1014
}
, written by Sun Microsystems,
Inc. June 1987. It supports most of the data types described in the
...
...
Doc/lib/libxmllib.tex
View file @
b91e934c
\section
{
Standard Module
\module
{
xmllib
}}
% Author: Sjoerd Mullender
\label
{
module-xmllib
}
\stmodindex
{
xmllib
}
\declaremodule
{
standard
}{
xmllib
}
\modulesynopsis
{
A parser for XML documents.
}
\index
{
XML
}
This module defines a class
\class
{
XMLParser
}
which serves as the basis
...
...
Doc/lib/libzlib.tex
View file @
b91e934c
...
...
@@ -2,8 +2,10 @@
% hasn't been updated yet
\section
{
Built-in Module
\module
{
zlib
}}
\label
{
module-zlib
}
\bimodindex
{
zlib
}
\declaremodule
{
builtin
}{
zlib
}
\modulesynopsis
{
None
}
For applications that require data compression, the functions in this
module allow compression and decompression, using the zlib library.
...
...
Doc/templates/module.tex
View file @
b91e934c
...
...
@@ -4,29 +4,27 @@
% ==== 1. ====
% Choose one of the following section headers and index entries;
% \section generates the section header,
% \bimodindex or \stmodindex generates an index entry for this
% module. Note that these should only be used for the defining entry
% for the module. Other references to the module should use
% \refbimodindex, \refstmodindex, \refexmodindex or \refmodindex, as
% appropriate. (Just prepend "ref" to the csname of the \*modindex
% macro used in the module definition.)
%
% The \label{module-spam} line is for the \seealso command.
% \section generates the section header, \declmodule produces the
% appropriate index entry for this module. Note that these should
% only be used for the defining entry for the module. Other
% references to the module should use \refbimodindex, \refstmodindex,
% \refexmodindex or \refmodindex, as appropriate.
\section
{
Built-in Module
\module
{
spam
}}
% If implemented in C, in
\
bimodindex
{
spam
}
% standard library
\
declaremodule
{
builtin
}{
spam
}
% standard library
\section
{
Standard Module
\module
{
spam
}}
% If implemented in Python, in
\
stmodindex
{
spam
}
% standard library
\
declaremodule
{
standard
}{
spam
}
% standard library
\section
{
Extension Module
\module
{
spam
}}
% If implemented in C, but not
\
exmodindex
{
spam
}
% in standard library
\
declaremodule
{
extension
}{
spam
}
% in standard library
\section
{
Module
\module
{
spam
}}
% If implemented in Python, but not
\modindex
{
spam
}
% in standard library
\declaremodule
{}{
spam
}
% in standard library
\modulesynopsis
{
This is a one-line descrition, for the chapter header.
}
\label
{
module-spam
}
% ==== 2. ====
% Give a short overview of what the module does.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment