blob: b8b66c6925f710c95a9ad355feb21d1950e90f4b [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001
2.. _undoc:
3
4********************
5Undocumented Modules
6********************
7
8Here's a quick listing of modules that are currently undocumented, but that
9should be documented. Feel free to contribute documentation for them! (Send
10via email to docs@python.org.)
11
12The idea and original contents for this chapter were taken from a posting by
13Fredrik Lundh; the specific contents of this chapter have been substantially
14revised.
15
16
17Miscellaneous useful utilities
18==============================
19
20Some of these are very old and/or not very robust; marked with "hmm."
21
Georg Brandl8ec7f652007-08-15 14:28:01 +000022:mod:`ihooks`
Georg Brandlb44c9f32009-04-27 15:29:26 +000023 --- Import hook support (for :mod:`rexec`; may become obsolete). Removed in
24 Python 3.x.
Georg Brandl8ec7f652007-08-15 14:28:01 +000025
26
27Platform specific modules
28=========================
29
30These modules are used to implement the :mod:`os.path` module, and are not
31documented beyond this mention. There's little need to document these.
32
33:mod:`ntpath`
34 --- Implementation of :mod:`os.path` on Win32, Win64, WinCE, and OS/2 platforms.
35
36:mod:`posixpath`
37 --- Implementation of :mod:`os.path` on POSIX.
38
39:mod:`bsddb185`
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.
43
44
45Multimedia
46==========
47
48:mod:`audiodev`
Georg Brandlb44c9f32009-04-27 15:29:26 +000049 --- Platform-independent API for playing audio data. Removed in Python 3.x.
Brett Cannone5d2cba2008-05-06 23:23:34 +000050
Georg Brandl8ec7f652007-08-15 14:28:01 +000051:mod:`linuxaudiodev`
52 --- Play audio data on the Linux audio device. Replaced in Python 2.3 by the
Georg Brandlb44c9f32009-04-27 15:29:26 +000053 :mod:`ossaudiodev` module. Removed in Python 3.x.
Georg Brandl8ec7f652007-08-15 14:28:01 +000054
55:mod:`sunaudio`
56 --- Interpret Sun audio headers (may become obsolete or a tool/demo).
Georg Brandlb44c9f32009-04-27 15:29:26 +000057 Removed in Python 3.x.
Brett Cannon1e8fba72008-07-18 19:30:22 +000058
Georg Brandl8ec7f652007-08-15 14:28:01 +000059:mod:`toaiff`
60 --- Convert "arbitrary" sound files to AIFF files; should probably become a tool
Georg Brandlb44c9f32009-04-27 15:29:26 +000061 or demo. Requires the external program :program:`sox`. Removed in Python 3.x.
Brett Cannonfa24d9a2008-05-09 05:32:42 +000062
63
Georg Brandl8ec7f652007-08-15 14:28:01 +000064.. _undoc-mac-modules:
65
66Undocumented Mac OS modules
67===========================
68
69
70:mod:`applesingle` --- AppleSingle decoder
71------------------------------------------
72
73.. module:: applesingle
74 :platform: Mac
75 :synopsis: Rudimentary decoder for AppleSingle format files.
Benjamin Peterson23681932008-05-12 21:42:13 +000076 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +000077
Benjamin Peterson23681932008-05-12 21:42:13 +000078.. deprecated:: 2.6
Georg Brandl8ec7f652007-08-15 14:28:01 +000079
80
81:mod:`buildtools` --- Helper module for BuildApplet and Friends
82---------------------------------------------------------------
83
84.. module:: buildtools
85 :platform: Mac
86 :synopsis: Helper module for BuildApplet, BuildApplication and macfreeze.
Benjamin Peterson23681932008-05-12 21:42:13 +000087 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +000088
89
90.. deprecated:: 2.4
91
92:mod:`cfmfile` --- Code Fragment Resource module
93------------------------------------------------
94
95.. module:: cfmfile
96 :platform: Mac
97 :synopsis: Code Fragment Resource module.
Benjamin Peterson23681932008-05-12 21:42:13 +000098 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +000099
100
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
103BuildApplication to combine all plugin modules to a single executable.
104
105.. deprecated:: 2.4
106
107:mod:`icopen` --- Internet Config replacement for :meth:`open`
108--------------------------------------------------------------
109
110.. module:: icopen
111 :platform: Mac
112 :synopsis: Internet Config replacement for open().
Benjamin Peterson23681932008-05-12 21:42:13 +0000113 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +0000114
115
Georg Brandld7d4fd72009-07-26 14:37:28 +0000116Importing :mod:`icopen` will replace the built-in :meth:`open` with a version
Georg Brandl8ec7f652007-08-15 14:28:01 +0000117that uses Internet Config to set file type and creator for new files.
118
Benjamin Peterson23681932008-05-12 21:42:13 +0000119.. deprecated:: 2.6
120
Georg Brandl8ec7f652007-08-15 14:28:01 +0000121
122:mod:`macerrors` --- Mac OS Errors
123----------------------------------
124
125.. module:: macerrors
126 :platform: Mac
127 :synopsis: Constant definitions for many Mac OS error codes.
Benjamin Peterson23681932008-05-12 21:42:13 +0000128 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +0000129
130
131:mod:`macerrors` contains constant definitions for many Mac OS error codes.
132
Benjamin Peterson23681932008-05-12 21:42:13 +0000133.. deprecated:: 2.6
134
Georg Brandl8ec7f652007-08-15 14:28:01 +0000135
136:mod:`macresource` --- Locate script resources
137----------------------------------------------
138
139.. module:: macresource
140 :platform: Mac
141 :synopsis: Locate script resources.
Benjamin Peterson23681932008-05-12 21:42:13 +0000142 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +0000143
144
145:mod:`macresource` helps scripts finding their resources, such as dialogs and
146menus, without requiring special case code for when the script is run under
147MacPython, as a MacPython applet or under OSX Python.
148
Benjamin Peterson23681932008-05-12 21:42:13 +0000149.. deprecated:: 2.6
150
Georg Brandl8ec7f652007-08-15 14:28:01 +0000151
152:mod:`Nav` --- NavServices calls
153--------------------------------
154
155.. module:: Nav
156 :platform: Mac
157 :synopsis: Interface to Navigation Services.
Benjamin Peterson23681932008-05-12 21:42:13 +0000158 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +0000159
160
161A low-level interface to Navigation Services.
162
Benjamin Peterson23681932008-05-12 21:42:13 +0000163.. deprecated:: 2.6
164
Georg Brandl8ec7f652007-08-15 14:28:01 +0000165
166:mod:`PixMapWrapper` --- Wrapper for PixMap objects
167---------------------------------------------------
168
169.. module:: PixMapWrapper
170 :platform: Mac
171 :synopsis: Wrapper for PixMap objects.
Benjamin Peterson23681932008-05-12 21:42:13 +0000172 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +0000173
174
175:mod:`PixMapWrapper` wraps a PixMap object with a Python object that allows
176access to the fields by name. It also has methods to convert to and from
177:mod:`PIL` images.
178
Benjamin Peterson23681932008-05-12 21:42:13 +0000179.. deprecated:: 2.6
180
Georg Brandl8ec7f652007-08-15 14:28:01 +0000181
182:mod:`videoreader` --- Read QuickTime movies
183--------------------------------------------
184
185.. module:: videoreader
186 :platform: Mac
187 :synopsis: Read QuickTime movies frame by frame for further processing.
Benjamin Peterson23681932008-05-12 21:42:13 +0000188 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +0000189
190
191:mod:`videoreader` reads and decodes QuickTime movies and passes a stream of
192images to your program. It also provides some support for audio tracks.
193
Benjamin Peterson23681932008-05-12 21:42:13 +0000194.. deprecated:: 2.6
195
Georg Brandl8ec7f652007-08-15 14:28:01 +0000196
197:mod:`W` --- Widgets built on :mod:`FrameWork`
198----------------------------------------------
199
200.. module:: W
201 :platform: Mac
202 :synopsis: Widgets for the Mac, built on top of FrameWork.
Benjamin Peterson23681932008-05-12 21:42:13 +0000203 :deprecated:
Georg Brandl8ec7f652007-08-15 14:28:01 +0000204
205
206The :mod:`W` widgets are used extensively in the :program:`IDE`.
207
Benjamin Peterson23681932008-05-12 21:42:13 +0000208.. deprecated:: 2.6
209
Georg Brandl8ec7f652007-08-15 14:28:01 +0000210
211.. _obsolete-modules:
212
213Obsolete
214========
215
216These modules are not normally available for import; additional work must be
217done to make them available.
218
219These extension modules written in C are not built by default. Under Unix, these
220must be enabled by uncommenting the appropriate lines in :file:`Modules/Setup`
221in the build tree and either rebuilding Python if the modules are statically
222linked, or building and installing the shared object if using dynamically-loaded
223extensions.
224
Georg Brandlb19be572007-12-29 10:57:00 +0000225.. (lib-old is empty as of Python 2.5)
Georg Brandl8ec7f652007-08-15 14:28:01 +0000226
Georg Brandlb19be572007-12-29 10:57:00 +0000227 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
230 \envvar{PYTHONPATH}.
Georg Brandl8ec7f652007-08-15 14:28:01 +0000231
232:mod:`timing`
Georg Brandlb44c9f32009-04-27 15:29:26 +0000233 --- Measure time intervals to high resolution (use :func:`time.clock`
234 instead). Removed in Python 3.x.
Georg Brandl8ec7f652007-08-15 14:28:01 +0000235
236
237SGI-specific Extension modules
238==============================
239
240The following are SGI specific, and may be out of touch with the current version
241of reality.
242
243:mod:`cl`
244 --- Interface to the SGI compression library.
245
246:mod:`sv`
247 --- Interface to the "simple video" board on SGI Indigo (obsolete hardware).
Georg Brandlb44c9f32009-04-27 15:29:26 +0000248 Removed in Python 3.x.