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