Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71c1e50

Browse files
committed
Moved some things around.
Adjusted a couple of the comments to be more informative. Tell a little bit about what obsolete means now, and how to use obsolete modules.
1 parent 13beac1 commit 71c1e50

2 files changed

Lines changed: 164 additions & 154 deletions

File tree

Doc/lib/libundoc.tex

Lines changed: 82 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -9,202 +9,207 @@ \chapter{Undocumented Modules}
99

1010
\section{Fundamental, and pretty straightforward to document}
1111

12-
cPickle.c -- mostly the same as pickle but no subclassing
12+
cPickle.c --- mostly the same as pickle but no subclassing
1313

14-
cStringIO.c -- mostly the same as StringIO but no subclassing
14+
cStringIO.c --- mostly the same as StringIO but no subclassing
1515

1616

1717
\section{Frameworks; somewhat harder to document, but well worth the effort}
1818

19-
Tkinter.py -- Interface to Tcl/Tk for graphical user interfaces;
19+
Tkinter.py --- Interface to Tcl/Tk for graphical user interfaces;
2020
Fredrik Lundh is working on this one!
2121

22-
CGIHTTPServer.py -- CGI-savvy HTTP Server
22+
CGIHTTPServer.py --- CGI-savvy HTTP Server
2323

24-
SimpleHTTPServer.py -- Simple HTTP Server
24+
SimpleHTTPServer.py --- Simple HTTP Server
2525

2626

2727
\section{Stuff useful to a lot of people, including the CGI crowd}
2828

29-
MimeWriter.py -- Generic MIME writer
29+
MimeWriter.py --- Generic MIME writer
3030

31-
multifile.py -- make each part of a multipart message ``feel'' like
32-
33-
fileinput.py -- convenient loop over the lines in a list of input files.
31+
multifile.py --- make each part of a multipart message ``feel'' like
3432

3533

3634
\section{Miscellaneous useful utilities}
3735

3836
Some of these are very old and/or not very robust; marked with ``hmm''.
3937

40-
calendar.py -- Calendar printing functions
38+
calendar.py --- Calendar printing functions
39+
40+
ConfigParser.py --- Parse a file of sectioned configuration parameters
4141

42-
ConfigParser.py -- Parse a file of sectioned configuration parameters
42+
cmp.py --- Efficiently compare files
4343

44-
cmp.py -- Efficiently compare files
44+
cmpcache.py --- Efficiently compare files (uses statcache)
4545

46-
cmpcache.py -- Efficiently compare files (uses statcache)
46+
dircache.py --- like os.listdir, but caches results
4747

48-
dircache.py -- like os.listdir, but caches results
48+
dircmp.py --- class to build directory diff tools on
4949

50-
dircmp.py -- class to build directory diff tools on
50+
linecache.py --- Cache lines from files (used by pdb)
5151

52-
linecache.py -- Cache lines from files (used by pdb)
52+
pipes.py --- Conversion pipeline templates (hmm)
5353

54-
pipes.py -- Conversion pipeline templates (hmm)
54+
popen2.py --- improved popen, can read AND write simultaneously
5555

56-
popen2.py -- improved popen, can read AND write simultaneously
56+
statcache.py --- Maintain a cache of file stats
5757

58-
statcache.py -- Maintain a cache of file stats
58+
colorsys.py --- Conversion between RGB and other color systems
5959

60-
colorsys.py -- Conversion between RGB and other color systems
60+
dbhash.py --- (g)dbm-like wrapper for bsdhash.hashopen
6161

62-
dbhash.py -- (g)dbm-like wrapper for bsdhash.hashopen
62+
mhlib.py --- MH interface
6363

64-
mhlib.py -- MH interface
64+
pty.py --- Pseudo terminal utilities
6565

66-
pty.py -- Pseudo terminal utilities
66+
tty.py --- Terminal utilities
6767

68-
tty.py -- Terminal utilities
68+
cmd.py --- build line-oriented command interpreters (used by pdb)
6969

70-
cmd.py -- build line-oriented command interpreters (used by pdb)
70+
bdb.py --- A generic Python debugger base class (used by pdb)
7171

72-
bdb.py -- A generic Python debugger base class (used by pdb)
72+
ihooks.py --- Import hook support (for rexec)
7373

74-
ihooks.py -- Import hook support (for ni and rexec)
74+
bisect.py --- Bisection algorithms (this is actually useful at times,
75+
especially as reference material)
7576

7677

7778
\section{Parsing Python}
7879

7980
(One could argue that these should all be documented together with the
8081
parser module.)
8182

82-
tokenize.py -- regular expression that recognizes Python tokens; also
83+
tokenize.py --- regular expression that recognizes Python tokens; also
8384
contains helper code for colorizing Python source code.
8485

85-
pyclbr.py -- Parse a Python file and retrieve classes and methods
86+
pyclbr.py --- Parse a Python file and retrieve classes and methods
8687

8788

8889
\section{Platform specific modules}
8990

90-
ntpath.py -- equivalent of posixpath on 32-bit Windows
91+
ntpath.py --- equivalent of posixpath on 32-bit Windows
9192

92-
dospath.py -- equivalent of posixpath on MS-DOS
93+
dospath.py --- equivalent of posixpath on MS-DOS
9394

9495

9596
\section{Code objects and files, debugger etc.}
9697

97-
compileall.py -- force "compilation" of all .py files in a directory
98+
compileall.py --- force "compilation" of all .py files in a directory
9899

99-
py_compile.py -- "compile" a .py file to a .pyc file
100+
py_compile.py --- "compile" a .py file to a .pyc file
100101

101-
repr.py -- Redo the `...` (representation) but with limits on most
102+
repr.py --- Redo the `...` (representation) but with limits on most
102103
sizes (used by pdb)
103104

104105

105106
\section{Multimedia}
106107

107-
audiodev.py -- Plays audio files
108+
audiodev.py --- Plays audio files
108109

109-
sunau.py -- parse Sun and NeXT audio files
110+
sunau.py --- parse Sun and NeXT audio files
110111

111-
sunaudio.py -- interpret sun audio headers
112+
sunaudio.py --- interpret sun audio headers
112113

113-
toaiff.py -- Convert "arbitrary" sound files to AIFF files
114+
toaiff.py --- Convert "arbitrary" sound files to AIFF files
114115

115-
sndhdr.py -- recognizing sound files
116+
sndhdr.py --- recognizing sound files
116117

117-
wave.py -- parse WAVE files
118+
wave.py --- parse WAVE files
118119

119-
whatsound.py -- recognizing sound files
120+
whatsound.py --- recognizing sound files
120121

121122

122123
\section{Oddities}
123124

124125
These modules are probably also obsolete, or just not very useful.
125126

126-
bisect.py -- Bisection algorithms (this is actually useful at times)
127-
128-
dump.py -- Print python code that reconstructs a variable
127+
dump.py --- Print python code that reconstructs a variable
129128

130-
find.py -- find files matching pattern in directory tree
129+
find.py --- find files matching pattern in directory tree
131130

132-
fpformat.py -- General floating point formatting functions -- obsolete
131+
fpformat.py --- General floating point formatting functions ---
132+
interesting demonstration of how to do this without using the \C{}
133+
library
133134

134-
grep.py -- grep
135+
grep.py --- grep
135136

136-
mutex.py -- Mutual exclusion -- for use with module sched
137+
mutex.py --- Mutual exclusion --- for use with module sched
137138

138-
packmail.py -- create a self-unpacking \UNIX{} shell archive
139+
packmail.py --- create a self-unpacking \UNIX{} shell archive
139140

140-
poly.py -- Polynomials
141+
poly.py --- Polynomials
141142

142-
sched.py -- event scheduler class
143+
sched.py --- event scheduler class
143144

144-
shutil.py -- utility functions usable in a shell-like program
145+
shutil.py --- utility functions usable in a shell-like program
145146

146-
util.py -- useful functions that don't fit elsewhere
147+
util.py --- useful functions that don't fit elsewhere
147148

148-
zmod.py -- Compute properties of mathematical "fields"
149+
zmod.py --- Compute properties of mathematical "fields"
149150

150-
tzparse.py -- Parse a timezone specification (unfinished)
151+
tzparse.py --- Parse a timezone specification (unfinished)
151152

152153

153154
\section{Obsolete}
154155

155-
newdir.py -- New dir() function (the standard dir() is now just as good)
156+
These modules are not on the standard module search path;
157+
\indexiii{module}{search}{path}
158+
but are available in the directory \file{lib-old/} installed under
159+
\file{\textrm{\$prefix}/lib/python\version/}. To use any of these
160+
modules, add that directory to \code{sys.path}, possibly using
161+
\envvar{PYTHONPATH}.
156162

157-
addpack.py -- standard support for "packages" (use ni instead)
163+
newdir.py --- New dir() function (the standard dir() is now just as good)
158164

159-
fmt.py -- text formatting abstractions (too slow)
165+
addpack.py --- standard support for "packages"
160166

161-
Para.py -- helper for fmt.py
167+
fmt.py --- text formatting abstractions (too slow)
162168

163-
lockfile.py -- wrapper around FCNTL file locking (use
169+
Para.py --- helper for fmt.py
170+
171+
lockfile.py --- wrapper around FCNTL file locking (use
164172
fcntl.lockf/flock intead)
165173

166-
tb.py -- Print tracebacks, with a dump of local variables (use
174+
tb.py --- Print tracebacks, with a dump of local variables (use
167175
pdb.pm() or traceback.py instead)
168176

169-
codehack.py -- extract function name or line number from a function
177+
codehack.py --- extract function name or line number from a function
170178
code object (these are now accessible as attributes: co.co_name,
171179
func.func_name, co.co_firstlineno)
172180

173181

174182
\section{Extension modules}
175183

176-
bsddbmodule.c -- Interface to the Berkeley DB interface (yet another
184+
bsddbmodule.c --- Interface to the Berkeley DB interface (yet another
177185
dbm clone).
178186

179-
cursesmodule.c -- Curses interface.
180-
181-
dbhashmodule.c -- Obsolete; this functionality is now provided by
182-
bsddbmodule.c.
187+
cursesmodule.c --- Curses interface.
183188

184-
dlmodule.c -- A highly experimental and dangerous device for calling
189+
dlmodule.c --- A highly experimental and dangerous device for calling
185190
arbitrary C functions in arbitrary shared libraries.
186191

187-
newmodule.c -- Tommy Burnette's `new' module (creates new empty
188-
objects of certain kinds) -- dangerous.
192+
newmodule.c --- Tommy Burnette's `new' module (creates new empty
193+
objects of certain kinds) --- dangerous.
189194

190-
nismodule.c -- NIS (a.k.a. Sun's Yellow Pages) interface.
195+
nismodule.c --- NIS (a.k.a. Sun's Yellow Pages) interface.
191196

192-
timingmodule.c -- Measure time intervals to high resolution (obsolete
193-
-- use time.clock() instead).
197+
timingmodule.c --- Measure time intervals to high resolution (obsolete
198+
--- use time.clock() instead).
194199

195-
stdwinmodule.c -- Interface to STDWIN (an old, unsupported
200+
stdwinmodule.c --- Interface to STDWIN (an old, unsupported
196201
platform-independent GUI package). Obsolete; use Tkinter for a
197202
platform-independent GUI instead.
198203

199204
The following are SGI specific:
200205

201-
clmodule.c -- Interface to the SGI compression library.
206+
clmodule.c --- Interface to the SGI compression library.
202207

203-
svmodule.c -- Interface to the ``simple video'' board on SGI Indigo
208+
svmodule.c --- Interface to the ``simple video'' board on SGI Indigo
204209
(obsolete hardware).
205210

206211
The following is Windows specific:
207212

208-
msvcrtmodule.c (in directory PC) -- define a number of Windows
213+
msvcrtmodule.c (in directory PC) --- define a number of Windows
209214
specific goodies like \code{khbit()}, \code{getch()} and
210215
\code{setmode()}. (Windows 95 and NT only.)

0 commit comments

Comments
 (0)