Superseded Modules¶
The modules described in this chapter are deprecated and only kept for backwards compatibility. They have been superseded by other modules.
aifc— Read and write AIFF and AIFC filesasynchat— Asynchronous socket command/response handlerasyncore— Asynchronous socket handleraudioop— Manipulate raw audio datacgi— Common Gateway Interface supportcgitb— Traceback manager for CGI scriptschunk— Read IFF chunked datacrypt— Function to check Unix passwordsimghdr— Determine the type of an imageimp— Access the import internalsmailcap— Mailcap file handlingmsilib— Read and write Microsoft Installer filesnis— Interface to Sun’s NIS (Yellow Pages)nntplib— NNTP protocol clientoptparse— Parser for command line options- Background
- Tutorial
- Reference Guide
- Option Callbacks
- Defining a callback option
- How callbacks are called
- Raising errors in a callback
- Callback example 1: trivial callback
- Callback example 2: check option order
- Callback example 3: check option order (generalized)
- Callback example 4: check arbitrary condition
- Callback example 5: fixed arguments
- Callback example 6: variable arguments
- Extending
optparse - Exceptions
ossaudiodev— Access to OSS-compatible audio devicespipes— Interface to shell pipelinessmtpd— SMTP Serversndhdr— Determine type of sound filespwd— The shadow password databasesunau— Read and write Sun AU filestelnetlib— Telnet clientuu— Encode and decode uuencode filesxdrlib— Encode and decode XDR data