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