| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 1 |  | 
 | 2 | .. _undoc: | 
 | 3 |  | 
 | 4 | ******************** | 
 | 5 | Undocumented Modules | 
 | 6 | ******************** | 
 | 7 |  | 
 | 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.) | 
 | 11 |  | 
 | 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 | 
 | 14 | revised. | 
 | 15 |  | 
 | 16 |  | 
 | 17 | Miscellaneous useful utilities | 
 | 18 | ============================== | 
 | 19 |  | 
 | 20 | Some of these are very old and/or not very robust; marked with "hmm." | 
 | 21 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 22 | :mod:`ihooks` | 
 | 23 |    --- Import hook support (for :mod:`rexec`; may become obsolete). | 
| Brett Cannon | 27508d4 | 2008-05-10 22:45:07 +0000 | [diff] [blame] | 24 |     | 
| Brett Cannon | a975cd4 | 2008-05-11 01:06:54 +0000 | [diff] [blame] | 25 |    .. warning:: The :mod:`ihooks` module has been removed in Python 3.0. | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 26 |  | 
 | 27 |  | 
 | 28 | Platform specific modules | 
 | 29 | ========================= | 
 | 30 |  | 
 | 31 | These modules are used to implement the :mod:`os.path` module, and are not | 
 | 32 | documented beyond this mention.  There's little need to document these. | 
 | 33 |  | 
 | 34 | :mod:`ntpath` | 
 | 35 |    --- Implementation of :mod:`os.path` on Win32, Win64, WinCE, and OS/2 platforms. | 
 | 36 |  | 
 | 37 | :mod:`posixpath` | 
 | 38 |    --- Implementation of :mod:`os.path` on POSIX. | 
 | 39 |  | 
 | 40 | :mod:`bsddb185` | 
 | 41 |    --- Backwards compatibility module for systems which still use the Berkeley DB | 
 | 42 |    1.85 module.  It is normally only available on certain BSD Unix-based systems. | 
 | 43 |    It should never be used directly. | 
 | 44 |  | 
 | 45 |  | 
 | 46 | Multimedia | 
 | 47 | ========== | 
 | 48 |  | 
 | 49 | :mod:`audiodev` | 
 | 50 |    --- Platform-independent API for playing audio data. | 
 | 51 |  | 
| Brett Cannon | e5d2cba | 2008-05-06 23:23:34 +0000 | [diff] [blame] | 52 |    .. warning:: The :mod:`audiodev` module has been removed in 3.0. | 
 | 53 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 54 | :mod:`linuxaudiodev` | 
 | 55 |    --- Play audio data on the Linux audio device.  Replaced in Python 2.3 by the | 
 | 56 |    :mod:`ossaudiodev` module. | 
| Brett Cannon | df0a717 | 2008-05-11 00:50:51 +0000 | [diff] [blame] | 57 |     | 
| Brett Cannon | a975cd4 | 2008-05-11 01:06:54 +0000 | [diff] [blame] | 58 |    .. warning:: The :mod:`linuxaudiodev` module has been removed in Python 3.0. | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 59 |  | 
 | 60 | :mod:`sunaudio` | 
 | 61 |    --- Interpret Sun audio headers (may become obsolete or a tool/demo). | 
 | 62 |  | 
 | 63 | :mod:`toaiff` | 
 | 64 |    --- Convert "arbitrary" sound files to AIFF files; should probably become a tool | 
 | 65 |    or demo.  Requires the external program :program:`sox`. | 
 | 66 |  | 
 | 67 |  | 
| Brett Cannon | fa24d9a | 2008-05-09 05:32:42 +0000 | [diff] [blame] | 68 |    .. warning:: The :mod:`toaiff` module has been removed in 3.0. | 
 | 69 |  | 
 | 70 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 71 | .. _undoc-mac-modules: | 
 | 72 |  | 
 | 73 | Undocumented Mac OS modules | 
 | 74 | =========================== | 
 | 75 |  | 
 | 76 |  | 
 | 77 | :mod:`applesingle` --- AppleSingle decoder | 
 | 78 | ------------------------------------------ | 
 | 79 |  | 
 | 80 | .. module:: applesingle | 
 | 81 |    :platform: Mac | 
 | 82 |    :synopsis: Rudimentary decoder for AppleSingle format files. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 83 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 84 |  | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 85 | .. deprecated:: 2.6 | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 86 |  | 
 | 87 |  | 
 | 88 | :mod:`buildtools` --- Helper module for BuildApplet and Friends | 
 | 89 | --------------------------------------------------------------- | 
 | 90 |  | 
 | 91 | .. module:: buildtools | 
 | 92 |    :platform: Mac | 
 | 93 |    :synopsis: Helper module for BuildApplet, BuildApplication and macfreeze. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 94 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 95 |  | 
 | 96 |  | 
 | 97 | .. deprecated:: 2.4 | 
 | 98 |  | 
 | 99 | :mod:`cfmfile` --- Code Fragment Resource module | 
 | 100 | ------------------------------------------------ | 
 | 101 |  | 
 | 102 | .. module:: cfmfile | 
 | 103 |    :platform: Mac | 
 | 104 |    :synopsis: Code Fragment Resource module. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 105 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 106 |  | 
 | 107 |  | 
 | 108 | :mod:`cfmfile` is a module that understands Code Fragments and the accompanying | 
 | 109 | "cfrg" resources. It can parse them and merge them, and is used by | 
 | 110 | BuildApplication to combine all plugin modules to a single executable. | 
 | 111 |  | 
 | 112 | .. deprecated:: 2.4 | 
 | 113 |  | 
 | 114 | :mod:`icopen` --- Internet Config replacement for :meth:`open` | 
 | 115 | -------------------------------------------------------------- | 
 | 116 |  | 
 | 117 | .. module:: icopen | 
 | 118 |    :platform: Mac | 
 | 119 |    :synopsis: Internet Config replacement for open(). | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 120 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 121 |  | 
 | 122 |  | 
 | 123 | Importing :mod:`icopen` will replace the builtin :meth:`open` with a version | 
 | 124 | that uses Internet Config to set file type and creator for new files. | 
 | 125 |  | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 126 | .. deprecated:: 2.6 | 
 | 127 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 128 |  | 
 | 129 | :mod:`macerrors` --- Mac OS Errors | 
 | 130 | ---------------------------------- | 
 | 131 |  | 
 | 132 | .. module:: macerrors | 
 | 133 |    :platform: Mac | 
 | 134 |    :synopsis: Constant definitions for many Mac OS error codes. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 135 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 136 |  | 
 | 137 |  | 
 | 138 | :mod:`macerrors` contains constant definitions for many Mac OS error codes. | 
 | 139 |  | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 140 | .. deprecated:: 2.6 | 
 | 141 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 142 |  | 
 | 143 | :mod:`macresource` --- Locate script resources | 
 | 144 | ---------------------------------------------- | 
 | 145 |  | 
 | 146 | .. module:: macresource | 
 | 147 |    :platform: Mac | 
 | 148 |    :synopsis: Locate script resources. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 149 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 150 |  | 
 | 151 |  | 
 | 152 | :mod:`macresource` helps scripts finding their resources, such as dialogs and | 
 | 153 | menus, without requiring special case code for when the script is run under | 
 | 154 | MacPython, as a MacPython applet or under OSX Python. | 
 | 155 |  | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 156 | .. deprecated:: 2.6 | 
 | 157 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 158 |  | 
 | 159 | :mod:`Nav` --- NavServices calls | 
 | 160 | -------------------------------- | 
 | 161 |  | 
 | 162 | .. module:: Nav | 
 | 163 |    :platform: Mac | 
 | 164 |    :synopsis: Interface to Navigation Services. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 165 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 166 |  | 
 | 167 |  | 
 | 168 | A low-level interface to Navigation Services. | 
 | 169 |  | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 170 | .. deprecated:: 2.6 | 
 | 171 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 172 |  | 
 | 173 | :mod:`PixMapWrapper` --- Wrapper for PixMap objects | 
 | 174 | --------------------------------------------------- | 
 | 175 |  | 
 | 176 | .. module:: PixMapWrapper | 
 | 177 |    :platform: Mac | 
 | 178 |    :synopsis: Wrapper for PixMap objects. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 179 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 180 |  | 
 | 181 |  | 
 | 182 | :mod:`PixMapWrapper` wraps a PixMap object with a Python object that allows | 
 | 183 | access to the fields by name. It also has methods to convert to and from | 
 | 184 | :mod:`PIL` images. | 
 | 185 |  | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 186 | .. deprecated:: 2.6 | 
 | 187 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 188 |  | 
 | 189 | :mod:`videoreader` --- Read QuickTime movies | 
 | 190 | -------------------------------------------- | 
 | 191 |  | 
 | 192 | .. module:: videoreader | 
 | 193 |    :platform: Mac | 
 | 194 |    :synopsis: Read QuickTime movies frame by frame for further processing. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 195 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 196 |  | 
 | 197 |  | 
 | 198 | :mod:`videoreader` reads and decodes QuickTime movies and passes a stream of | 
 | 199 | images to your program. It also provides some support for audio tracks. | 
 | 200 |  | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 201 | .. deprecated:: 2.6 | 
 | 202 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 203 |  | 
 | 204 | :mod:`W` --- Widgets built on :mod:`FrameWork` | 
 | 205 | ---------------------------------------------- | 
 | 206 |  | 
 | 207 | .. module:: W | 
 | 208 |    :platform: Mac | 
 | 209 |    :synopsis: Widgets for the Mac, built on top of FrameWork. | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 210 |    :deprecated: | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 211 |  | 
 | 212 |  | 
 | 213 | The :mod:`W` widgets are used extensively in the :program:`IDE`. | 
 | 214 |  | 
| Benjamin Peterson | 2368193 | 2008-05-12 21:42:13 +0000 | [diff] [blame] | 215 | .. deprecated:: 2.6 | 
 | 216 |  | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 217 |  | 
 | 218 | .. _obsolete-modules: | 
 | 219 |  | 
 | 220 | Obsolete | 
 | 221 | ======== | 
 | 222 |  | 
 | 223 | These modules are not normally available for import; additional work must be | 
 | 224 | done to make them available. | 
 | 225 |  | 
 | 226 | These extension modules written in C are not built by default. Under Unix, these | 
 | 227 | must be enabled by uncommenting the appropriate lines in :file:`Modules/Setup` | 
 | 228 | in the build tree and either rebuilding Python if the modules are statically | 
 | 229 | linked, or building and installing the shared object if using dynamically-loaded | 
 | 230 | extensions. | 
 | 231 |  | 
| Georg Brandl | b19be57 | 2007-12-29 10:57:00 +0000 | [diff] [blame] | 232 | .. (lib-old is empty as of Python 2.5) | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 233 |  | 
| Georg Brandl | b19be57 | 2007-12-29 10:57:00 +0000 | [diff] [blame] | 234 |    Those which are written in Python will be installed into the directory | 
 | 235 |    \file{lib-old/} installed as part of the standard library.  To use | 
 | 236 |    these, the directory must be added to \code{sys.path}, possibly using | 
 | 237 |    \envvar{PYTHONPATH}. | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 238 |  | 
 | 239 | :mod:`timing` | 
 | 240 |    --- Measure time intervals to high resolution (use :func:`time.clock` instead). | 
| Brett Cannon | bb141bb | 2008-05-12 03:47:47 +0000 | [diff] [blame] | 241 |     | 
 | 242 |    .. warning:: The :mod:`timing` module has been removed in Python 3.0. | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 243 |  | 
 | 244 |  | 
 | 245 | SGI-specific Extension modules | 
 | 246 | ============================== | 
 | 247 |  | 
 | 248 | The following are SGI specific, and may be out of touch with the current version | 
 | 249 | of reality. | 
 | 250 |  | 
 | 251 | :mod:`cl` | 
 | 252 |    --- Interface to the SGI compression library. | 
 | 253 |  | 
 | 254 | :mod:`sv` | 
 | 255 |    --- Interface to the "simple video" board on SGI Indigo (obsolete hardware). | 
| Brett Cannon | ac861b5 | 2008-05-12 03:45:59 +0000 | [diff] [blame] | 256 |     | 
 | 257 |    .. warning:: The :mod:`sv` module has been removed in Python 3.0. | 
| Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 258 |  |