Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +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 | |
| 22 | :mod:`bdb` |
| 23 | --- A generic Python debugger base class (used by pdb). |
| 24 | |
| 25 | :mod:`ihooks` |
| 26 | --- Import hook support (for :mod:`rexec`; may become obsolete). |
| 27 | |
| 28 | |
| 29 | Platform specific modules |
| 30 | ========================= |
| 31 | |
| 32 | These modules are used to implement the :mod:`os.path` module, and are not |
| 33 | documented beyond this mention. There's little need to document these. |
| 34 | |
| 35 | :mod:`ntpath` |
| 36 | --- Implementation of :mod:`os.path` on Win32, Win64, WinCE, and OS/2 platforms. |
| 37 | |
| 38 | :mod:`posixpath` |
| 39 | --- Implementation of :mod:`os.path` on POSIX. |
| 40 | |
| 41 | |
| 42 | Multimedia |
| 43 | ========== |
| 44 | |
| 45 | :mod:`linuxaudiodev` |
| 46 | --- Play audio data on the Linux audio device. Replaced in Python 2.3 by the |
| 47 | :mod:`ossaudiodev` module. |
| 48 | |
| 49 | :mod:`sunaudio` |
| 50 | --- Interpret Sun audio headers (may become obsolete or a tool/demo). |
| 51 | |
| 52 | |
| 53 | .. _undoc-mac-modules: |
| 54 | |
| 55 | Undocumented Mac OS modules |
| 56 | =========================== |
| 57 | |
| 58 | |
| 59 | :mod:`applesingle` --- AppleSingle decoder |
| 60 | ------------------------------------------ |
| 61 | |
| 62 | .. module:: applesingle |
| 63 | :platform: Mac |
| 64 | :synopsis: Rudimentary decoder for AppleSingle format files. |
| 65 | |
| 66 | |
| 67 | |
| 68 | :mod:`buildtools` --- Helper module for BuildApplet and Friends |
| 69 | --------------------------------------------------------------- |
| 70 | |
| 71 | .. module:: buildtools |
| 72 | :platform: Mac |
| 73 | :synopsis: Helper module for BuildApplet, BuildApplication and macfreeze. |
| 74 | |
| 75 | |
| 76 | .. deprecated:: 2.4 |
| 77 | |
| 78 | |
| 79 | :mod:`icopen` --- Internet Config replacement for :meth:`open` |
| 80 | -------------------------------------------------------------- |
| 81 | |
| 82 | .. module:: icopen |
| 83 | :platform: Mac |
| 84 | :synopsis: Internet Config replacement for open(). |
| 85 | |
| 86 | |
| 87 | Importing :mod:`icopen` will replace the builtin :meth:`open` with a version |
| 88 | that uses Internet Config to set file type and creator for new files. |
| 89 | |
| 90 | |
| 91 | :mod:`macerrors` --- Mac OS Errors |
| 92 | ---------------------------------- |
| 93 | |
| 94 | .. module:: macerrors |
| 95 | :platform: Mac |
| 96 | :synopsis: Constant definitions for many Mac OS error codes. |
| 97 | |
| 98 | |
| 99 | :mod:`macerrors` contains constant definitions for many Mac OS error codes. |
| 100 | |
| 101 | |
| 102 | :mod:`macresource` --- Locate script resources |
| 103 | ---------------------------------------------- |
| 104 | |
| 105 | .. module:: macresource |
| 106 | :platform: Mac |
| 107 | :synopsis: Locate script resources. |
| 108 | |
| 109 | |
| 110 | :mod:`macresource` helps scripts finding their resources, such as dialogs and |
| 111 | menus, without requiring special case code for when the script is run under |
| 112 | MacPython, as a MacPython applet or under OSX Python. |
| 113 | |
| 114 | |
| 115 | :mod:`Nav` --- NavServices calls |
| 116 | -------------------------------- |
| 117 | |
| 118 | .. module:: Nav |
| 119 | :platform: Mac |
| 120 | :synopsis: Interface to Navigation Services. |
| 121 | |
| 122 | |
| 123 | A low-level interface to Navigation Services. |
| 124 | |
| 125 | |
| 126 | :mod:`PixMapWrapper` --- Wrapper for PixMap objects |
| 127 | --------------------------------------------------- |
| 128 | |
| 129 | .. module:: PixMapWrapper |
| 130 | :platform: Mac |
| 131 | :synopsis: Wrapper for PixMap objects. |
| 132 | |
| 133 | |
| 134 | :mod:`PixMapWrapper` wraps a PixMap object with a Python object that allows |
| 135 | access to the fields by name. It also has methods to convert to and from |
| 136 | :mod:`PIL` images. |
| 137 | |
| 138 | |
| 139 | :mod:`videoreader` --- Read QuickTime movies |
| 140 | -------------------------------------------- |
| 141 | |
| 142 | .. module:: videoreader |
| 143 | :platform: Mac |
| 144 | :synopsis: Read QuickTime movies frame by frame for further processing. |
| 145 | |
| 146 | |
| 147 | :mod:`videoreader` reads and decodes QuickTime movies and passes a stream of |
| 148 | images to your program. It also provides some support for audio tracks. |
| 149 | |
| 150 | |
| 151 | :mod:`W` --- Widgets built on :mod:`FrameWork` |
| 152 | ---------------------------------------------- |
| 153 | |
| 154 | .. module:: W |
| 155 | :platform: Mac |
| 156 | :synopsis: Widgets for the Mac, built on top of FrameWork. |
| 157 | |
| 158 | |
| 159 | The :mod:`W` widgets are used extensively in the :program:`IDE`. |
| 160 | |
| 161 | |
| 162 | .. _obsolete-modules: |
| 163 | |
| 164 | Obsolete |
| 165 | ======== |
| 166 | |
| 167 | These modules are not normally available for import; additional work must be |
| 168 | done to make them available. |
| 169 | |
| 170 | These extension modules written in C are not built by default. Under Unix, these |
| 171 | must be enabled by uncommenting the appropriate lines in :file:`Modules/Setup` |
| 172 | in the build tree and either rebuilding Python if the modules are statically |
| 173 | linked, or building and installing the shared object if using dynamically-loaded |
| 174 | extensions. |
| 175 | |
| 176 | .. % %% lib-old is empty as of Python 2.5 |
| 177 | .. % Those which are written in Python will be installed into the directory |
| 178 | .. % \file{lib-old/} installed as part of the standard library. To use |
| 179 | .. % these, the directory must be added to \code{sys.path}, possibly using |
| 180 | .. % \envvar{PYTHONPATH}. |
| 181 | |
| 182 | .. % XXX need Windows instructions! |
| 183 | |
| 184 | |
| 185 | --- This section should be empty for Python 3.0. |
| 186 | |