8 Here's a quick listing of modules that are currently undocumented, but that
9 should be documented. Feel free to contribute documentation for them! (Send
10 via email to docs@python.org.)
12 The idea and original contents for this chapter were taken from a posting by
13 Fredrik Lundh; the specific contents of this chapter have been substantially
17 Miscellaneous useful utilities
18 ==============================
20 Some of these are very old and/or not very robust; marked with "hmm."
23 --- Import hook support (for :mod:`rexec`; may become obsolete). Removed in
27 Platform specific modules
28 =========================
30 These modules are used to implement the :mod:`os.path` module, and are not
31 documented beyond this mention. There's little need to document these.
34 --- Implementation of :mod:`os.path` on Win32, Win64, WinCE, and OS/2 platforms.
37 --- Implementation of :mod:`os.path` on POSIX.
40 --- Backwards compatibility module for systems which still use the Berkeley DB
41 1.85 module. It is normally only available on certain BSD Unix-based systems.
42 It should never be used directly.
49 --- Platform-independent API for playing audio data. Removed in Python 3.x.
52 --- Play audio data on the Linux audio device. Replaced in Python 2.3 by the
53 :mod:`ossaudiodev` module. Removed in Python 3.x.
56 --- Interpret Sun audio headers (may become obsolete or a tool/demo).
57 Removed in Python 3.x.
60 --- Convert "arbitrary" sound files to AIFF files; should probably become a tool
61 or demo. Requires the external program :program:`sox`. Removed in Python 3.x.
64 .. _undoc-mac-modules:
66 Undocumented Mac OS modules
67 ===========================
70 :mod:`applesingle` --- AppleSingle decoder
71 ------------------------------------------
73 .. module:: applesingle
75 :synopsis: Rudimentary decoder for AppleSingle format files.
81 :mod:`buildtools` --- Helper module for BuildApplet and Friends
82 ---------------------------------------------------------------
84 .. module:: buildtools
86 :synopsis: Helper module for BuildApplet, BuildApplication and macfreeze.
92 :mod:`cfmfile` --- Code Fragment Resource module
93 ------------------------------------------------
97 :synopsis: Code Fragment Resource module.
101 :mod:`cfmfile` is a module that understands Code Fragments and the accompanying
102 "cfrg" resources. It can parse them and merge them, and is used by
103 BuildApplication to combine all plugin modules to a single executable.
107 :mod:`icopen` --- Internet Config replacement for :meth:`open`
108 --------------------------------------------------------------
112 :synopsis: Internet Config replacement for open().
116 Importing :mod:`icopen` will replace the builtin :meth:`open` with a version
117 that uses Internet Config to set file type and creator for new files.
122 :mod:`macerrors` --- Mac OS Errors
123 ----------------------------------
125 .. module:: macerrors
127 :synopsis: Constant definitions for many Mac OS error codes.
131 :mod:`macerrors` contains constant definitions for many Mac OS error codes.
136 :mod:`macresource` --- Locate script resources
137 ----------------------------------------------
139 .. module:: macresource
141 :synopsis: Locate script resources.
145 :mod:`macresource` helps scripts finding their resources, such as dialogs and
146 menus, without requiring special case code for when the script is run under
147 MacPython, as a MacPython applet or under OSX Python.
152 :mod:`Nav` --- NavServices calls
153 --------------------------------
157 :synopsis: Interface to Navigation Services.
161 A low-level interface to Navigation Services.
166 :mod:`PixMapWrapper` --- Wrapper for PixMap objects
167 ---------------------------------------------------
169 .. module:: PixMapWrapper
171 :synopsis: Wrapper for PixMap objects.
175 :mod:`PixMapWrapper` wraps a PixMap object with a Python object that allows
176 access to the fields by name. It also has methods to convert to and from
182 :mod:`videoreader` --- Read QuickTime movies
183 --------------------------------------------
185 .. module:: videoreader
187 :synopsis: Read QuickTime movies frame by frame for further processing.
191 :mod:`videoreader` reads and decodes QuickTime movies and passes a stream of
192 images to your program. It also provides some support for audio tracks.
197 :mod:`W` --- Widgets built on :mod:`FrameWork`
198 ----------------------------------------------
202 :synopsis: Widgets for the Mac, built on top of FrameWork.
206 The :mod:`W` widgets are used extensively in the :program:`IDE`.
211 .. _obsolete-modules:
216 These modules are not normally available for import; additional work must be
217 done to make them available.
219 These extension modules written in C are not built by default. Under Unix, these
220 must be enabled by uncommenting the appropriate lines in :file:`Modules/Setup`
221 in the build tree and either rebuilding Python if the modules are statically
222 linked, or building and installing the shared object if using dynamically-loaded
225 .. (lib-old is empty as of Python 2.5)
227 Those which are written in Python will be installed into the directory
228 \file{lib-old/} installed as part of the standard library. To use
229 these, the directory must be added to \code{sys.path}, possibly using
233 --- Measure time intervals to high resolution (use :func:`time.clock`
234 instead). Removed in Python 3.x.
237 SGI-specific Extension modules
238 ==============================
240 The following are SGI specific, and may be out of touch with the current version
244 --- Interface to the SGI compression library.
247 --- Interface to the "simple video" board on SGI Indigo (obsolete hardware).
248 Removed in Python 3.x.