PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Doc/extending/index.rst

http://unladen-swallow.googlecode.com/
ReStructuredText | 35 lines | 28 code | 7 blank | 0 comment | 0 complexity | f47a920e08214109080b99565ad91f86 MD5 | raw file
 1.. _extending-index:
 2
 3##################################################
 4  Extending and Embedding the Python Interpreter
 5##################################################
 6
 7:Release: |version|
 8:Date: |today|
 9
10This document describes how to write modules in C or C++ to extend the Python
11interpreter with new modules.  Those modules can define new functions but also
12new object types and their methods.  The document also describes how to embed
13the Python interpreter in another application, for use as an extension language.
14Finally, it shows how to compile and link extension modules so that they can be
15loaded dynamically (at run time) into the interpreter, if the underlying
16operating system supports this feature.
17
18This document assumes basic knowledge about Python.  For an informal
19introduction to the language, see :ref:`tutorial-index`.  :ref:`reference-index`
20gives a more formal definition of the language.  :ref:`library-index` documents
21the existing object types, functions and modules (both built-in and written in
22Python) that give the language its wide application range.
23
24For a detailed description of the whole Python/C API, see the separate
25:ref:`c-api-index`.
26
27.. toctree::
28   :maxdepth: 2
29   :numbered:
30
31   extending.rst
32   newtypes.rst
33   building.rst
34   windows.rst
35   embedding.rst