Mercurial > cpython-lru_cache-weakref
annotate Doc/api/api.tex @ 25838:8540887bcec6 2.2
Backport of 2.183:
Fix memory leak in add_subclass() found by NealN with valgrind.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 18 Oct 2002 13:42:21 +0000 |
| parents | 946bebd00132 |
| children | 7281429a01d6 |
| rev | line source |
|---|---|
|
7527
26a8771a4cfd
Convert LaTeX support to create a new class of documents. HTML generation
Fred Drake <fdrake@acm.org>
parents:
7493
diff
changeset
|
1 \documentclass{manual} |
|
5536
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
2 |
|
6417
4491f84ac223
Change title to {Python/C API Reference Manual}; remove \bcode \ecode
Guido van Rossum <guido@python.org>
parents:
6390
diff
changeset
|
3 \title{Python/C API Reference Manual} |
|
5536
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
4 |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
5 \input{boilerplate} |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
6 |
|
15953
8349b4dfc51a
Undoing the whitespace patches which sneaked into the earlier patch.
Marc-André Lemburg <mal@egenix.com>
parents:
15952
diff
changeset
|
7 \makeindex % tell \index to actually write the .idx file |
|
5536
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
8 |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
9 |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
10 \begin{document} |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
11 |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
12 \maketitle |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
13 |
|
8782
ae3e2eaef9b9
Update to use a separate page for front matter.
Fred Drake <fdrake@acm.org>
parents:
8138
diff
changeset
|
14 \ifhtml |
|
ae3e2eaef9b9
Update to use a separate page for front matter.
Fred Drake <fdrake@acm.org>
parents:
8138
diff
changeset
|
15 \chapter*{Front Matter\label{front}} |
|
ae3e2eaef9b9
Update to use a separate page for front matter.
Fred Drake <fdrake@acm.org>
parents:
8138
diff
changeset
|
16 \fi |
|
ae3e2eaef9b9
Update to use a separate page for front matter.
Fred Drake <fdrake@acm.org>
parents:
8138
diff
changeset
|
17 |
|
5536
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
18 \input{copyright} |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
19 |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
20 \begin{abstract} |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
21 |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
22 \noindent |
|
12222
3e9a1c1a9f56
Merge in changes from the 1.5.2p2 release.
Fred Drake <fdrake@acm.org>
parents:
12200
diff
changeset
|
23 This manual documents the API used by C and \Cpp{} programmers who |
| 7308 | 24 want to write extension modules or embed Python. It is a companion to |
|
11451
38c7444f633a
Use \citetitle and \programopt as appropriate.
Fred Drake <fdrake@acm.org>
parents:
11222
diff
changeset
|
25 \citetitle[../ext/ext.html]{Extending and Embedding the Python |
|
38c7444f633a
Use \citetitle and \programopt as appropriate.
Fred Drake <fdrake@acm.org>
parents:
11222
diff
changeset
|
26 Interpreter}, which describes the general principles of extension |
|
38c7444f633a
Use \citetitle and \programopt as appropriate.
Fred Drake <fdrake@acm.org>
parents:
11222
diff
changeset
|
27 writing but does not document the API functions in detail. |
|
5536
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
28 |
|
20390
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
29 \warning{The current version of this document is incomplete. I hope |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
30 that it is nevertheless useful. I will continue to work on it, and |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
31 release new versions from time to time, independent from Python source |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
32 code releases.} |
|
6991
f349bf0e9322
A whole bunch of typos fixed by Andrew Kuchling.
Guido van Rossum <guido@python.org>
parents:
6653
diff
changeset
|
33 |
|
5536
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
34 \end{abstract} |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
35 |
|
7092
8a55643e667f
Removed \mytableofcontents; just use \tableofcontents.
Fred Drake <fdrake@acm.org>
parents:
7081
diff
changeset
|
36 \tableofcontents |
|
5536
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
37 |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
38 |
|
20390
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
39 \input{intro} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
40 \input{veryhigh} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
41 \input{refcounting} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
42 \input{exceptions} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
43 \input{utilities} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
44 \input{abstract} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
45 \input{concrete} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
46 \input{init} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
47 \input{memory} |
|
946bebd00132
Break the Python/C API manual into smaller files by chapter. This manual
Fred Drake <fdrake@acm.org>
parents:
20286
diff
changeset
|
48 \input{newtypes} |
|
17147
349c8788604e
Be more clear about the specific rules for supporting the cyclic GC in an
Fred Drake <fdrake@acm.org>
parents:
17118
diff
changeset
|
49 |
|
349c8788604e
Be more clear about the specific rules for supporting the cyclic GC in an
Fred Drake <fdrake@acm.org>
parents:
17118
diff
changeset
|
50 |
|
12222
3e9a1c1a9f56
Merge in changes from the 1.5.2p2 release.
Fred Drake <fdrake@acm.org>
parents:
12200
diff
changeset
|
51 % \chapter{Debugging \label{debugging}} |
|
3e9a1c1a9f56
Merge in changes from the 1.5.2p2 release.
Fred Drake <fdrake@acm.org>
parents:
12200
diff
changeset
|
52 % |
|
3e9a1c1a9f56
Merge in changes from the 1.5.2p2 release.
Fred Drake <fdrake@acm.org>
parents:
12200
diff
changeset
|
53 % XXX Explain Py_DEBUG, Py_TRACE_REFS, Py_REF_DEBUG. |
|
6991
f349bf0e9322
A whole bunch of typos fixed by Andrew Kuchling.
Guido van Rossum <guido@python.org>
parents:
6653
diff
changeset
|
54 |
|
f349bf0e9322
A whole bunch of typos fixed by Andrew Kuchling.
Guido van Rossum <guido@python.org>
parents:
6653
diff
changeset
|
55 |
|
14736
2b9a890162b0
Include the new text on reporting bugs in a few useful places.
Fred Drake <fdrake@acm.org>
parents:
14696
diff
changeset
|
56 \appendix |
|
2b9a890162b0
Include the new text on reporting bugs in a few useful places.
Fred Drake <fdrake@acm.org>
parents:
14696
diff
changeset
|
57 \chapter{Reporting Bugs} |
|
2b9a890162b0
Include the new text on reporting bugs in a few useful places.
Fred Drake <fdrake@acm.org>
parents:
14696
diff
changeset
|
58 \input{reportingbugs} |
|
2b9a890162b0
Include the new text on reporting bugs in a few useful places.
Fred Drake <fdrake@acm.org>
parents:
14696
diff
changeset
|
59 |
|
18192
19bc63a84439
Move license information to a less annoying location in the document.
Fred Drake <fdrake@acm.org>
parents:
18020
diff
changeset
|
60 \chapter{History and License} |
|
19bc63a84439
Move license information to a less annoying location in the document.
Fred Drake <fdrake@acm.org>
parents:
18020
diff
changeset
|
61 \input{license} |
|
19bc63a84439
Move license information to a less annoying location in the document.
Fred Drake <fdrake@acm.org>
parents:
18020
diff
changeset
|
62 |
|
15953
8349b4dfc51a
Undoing the whitespace patches which sneaked into the earlier patch.
Marc-André Lemburg <mal@egenix.com>
parents:
15952
diff
changeset
|
63 \input{api.ind} % Index -- must be last |
|
5536
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
64 |
|
c6f04e965508
Made a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
65 \end{document} |
