1 | \documentclass{manual}
|
---|
2 |
|
---|
3 | % XXX PM explain how to add new types to Python
|
---|
4 |
|
---|
5 | \title{Extending and Embedding the Python Interpreter}
|
---|
6 |
|
---|
7 | \input{boilerplate}
|
---|
8 |
|
---|
9 | % Tell \index to actually write the .idx file
|
---|
10 | \makeindex
|
---|
11 |
|
---|
12 | \begin{document}
|
---|
13 |
|
---|
14 | \maketitle
|
---|
15 |
|
---|
16 | \ifhtml
|
---|
17 | \chapter*{Front Matter\label{front}}
|
---|
18 | \fi
|
---|
19 |
|
---|
20 | \input{copyright}
|
---|
21 |
|
---|
22 |
|
---|
23 | \begin{abstract}
|
---|
24 |
|
---|
25 | \noindent
|
---|
26 | Python is an interpreted, object-oriented programming language. This
|
---|
27 | document describes how to write modules in C or \Cpp{} to extend the
|
---|
28 | Python interpreter with new modules. Those modules can define new
|
---|
29 | functions but also new object types and their methods. The document
|
---|
30 | also describes how to embed the Python interpreter in another
|
---|
31 | application, for use as an extension language. Finally, it shows how
|
---|
32 | to compile and link extension modules so that they can be loaded
|
---|
33 | dynamically (at run time) into the interpreter, if the underlying
|
---|
34 | operating system supports this feature.
|
---|
35 |
|
---|
36 | This document assumes basic knowledge about Python. For an informal
|
---|
37 | introduction to the language, see the
|
---|
38 | \citetitle[../tut/tut.html]{Python Tutorial}. The
|
---|
39 | \citetitle[../ref/ref.html]{Python Reference Manual} gives a more
|
---|
40 | formal definition of the language. The
|
---|
41 | \citetitle[../lib/lib.html]{Python Library Reference} documents the
|
---|
42 | existing object types, functions and modules (both built-in and
|
---|
43 | written in Python) that give the language its wide application range.
|
---|
44 |
|
---|
45 | For a detailed description of the whole Python/C API, see the separate
|
---|
46 | \citetitle[../api/api.html]{Python/C API Reference Manual}.
|
---|
47 |
|
---|
48 | \end{abstract}
|
---|
49 |
|
---|
50 | \tableofcontents
|
---|
51 |
|
---|
52 |
|
---|
53 | \input{extending}
|
---|
54 | \input{newtypes}
|
---|
55 | \input{building}
|
---|
56 | \input{windows}
|
---|
57 | \input{embedding}
|
---|
58 |
|
---|
59 |
|
---|
60 | \appendix
|
---|
61 | \chapter{Reporting Bugs}
|
---|
62 | \input{reportingbugs}
|
---|
63 |
|
---|
64 | \chapter{History and License}
|
---|
65 | \input{license}
|
---|
66 |
|
---|
67 | \end{document}
|
---|