Mercurial > cpython-lru_cache-weakref
annotate Doc/lib/libbinhex.tex @ 21467:4e35fa5d5708 legacy-trunk
Add documentation for the help() built-in; contributed by Ka-Ping Yee.
This is part of SF patch #494622.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 18 Dec 2001 16:31:08 +0000 |
| parents | bc02c3b09626 |
| children | fad071fb4141 |
| rev | line source |
|---|---|
| 8918 | 1 \section{\module{binhex} --- |
| 10251 | 2 Encode and decode binhex4 files} |
| 3 | |
|
8716
760dcf197048
Adjusted to use the new module synopsis support macros.
Fred Drake <fdrake@acm.org>
parents:
7875
diff
changeset
|
4 \declaremodule{standard}{binhex} |
|
760dcf197048
Adjusted to use the new module synopsis support macros.
Fred Drake <fdrake@acm.org>
parents:
7875
diff
changeset
|
5 \modulesynopsis{Encode and decode files in binhex4 format.} |
|
760dcf197048
Adjusted to use the new module synopsis support macros.
Fred Drake <fdrake@acm.org>
parents:
7875
diff
changeset
|
6 |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
7 |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
8 This module encodes and decodes files in binhex4 format, a format |
|
21062
bc02c3b09626
Clean up some markup cruft. A number of the macros that take no
Fred Drake <fdrake@acm.org>
parents:
15261
diff
changeset
|
9 allowing representation of Macintosh files in \ASCII. On the Macintosh, |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
10 both forks of a file and the finder information are encoded (or |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
11 decoded), on other platforms only the data fork is handled. |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
12 |
|
7875
8f425f8f4be2
Remove obsolete \setindexsubitem macros.
Fred Drake <fdrake@acm.org>
parents:
7712
diff
changeset
|
13 The \module{binhex} module defines the following functions: |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
14 |
|
7712
0cbc9df882b6
Change "\," to just "," in function signatures. This is easier to maintain,
Fred Drake <fdrake@acm.org>
parents:
7390
diff
changeset
|
15 \begin{funcdesc}{binhex}{input, output} |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
16 Convert a binary file with filename \var{input} to binhex file |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
17 \var{output}. The \var{output} parameter can either be a filename or a |
|
10716
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
18 file-like object (any object supporting a \method{write()} and |
|
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
19 \method{close()} method). |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
20 \end{funcdesc} |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
21 |
|
7712
0cbc9df882b6
Change "\," to just "," in function signatures. This is easier to maintain,
Fred Drake <fdrake@acm.org>
parents:
7390
diff
changeset
|
22 \begin{funcdesc}{hexbin}{input\optional{, output}} |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
23 Decode a binhex file \var{input}. \var{input} may be a filename or a |
|
10716
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
24 file-like object supporting \method{read()} and \method{close()} methods. |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
25 The resulting file is written to a file named \var{output}, unless the |
|
10716
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
26 argument is omitted in which case the output filename is read from the |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
27 binhex file. |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
28 \end{funcdesc} |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
29 |
|
10716
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
30 |
|
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
31 \begin{seealso} |
|
15261
bc4f89eefb04
Make all the \seemodule explanations consistent: start with a capitalized
Fred Drake <fdrake@acm.org>
parents:
10716
diff
changeset
|
32 \seemodule{binascii}{Support module containing \ASCII-to-binary |
|
bc4f89eefb04
Make all the \seemodule explanations consistent: start with a capitalized
Fred Drake <fdrake@acm.org>
parents:
10716
diff
changeset
|
33 and binary-to-\ASCII{} conversions.} |
|
10716
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
34 \end{seealso} |
|
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
35 |
|
baf66d6e1bc1
Fix some glaring markup consistency problems (presentation was
Fred Drake <fdrake@acm.org>
parents:
10251
diff
changeset
|
36 |
| 10251 | 37 \subsection{Notes \label{binhex-notes}} |
| 38 | |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
39 There is an alternative, more powerful interface to the coder and |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
40 decoder, see the source for details. |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
41 |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
42 If you code or decode textfiles on non-Macintosh platforms they will |
|
7875
8f425f8f4be2
Remove obsolete \setindexsubitem macros.
Fred Drake <fdrake@acm.org>
parents:
7712
diff
changeset
|
43 still use the Macintosh newline convention (carriage-return as end of |
|
7390
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
44 line). |
|
223433038a47
Separate binhex and binuu documentation from binascii. Support better
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
45 |
|
7875
8f425f8f4be2
Remove obsolete \setindexsubitem macros.
Fred Drake <fdrake@acm.org>
parents:
7712
diff
changeset
|
46 As of this writing, \function{hexbin()} appears to not work in all |
|
8f425f8f4be2
Remove obsolete \setindexsubitem macros.
Fred Drake <fdrake@acm.org>
parents:
7712
diff
changeset
|
47 cases. |
