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