Movatterモバイル変換


[0]ホーム

URL:


Navigation

Extending and Embedding the Python Interpreter

Release:3.1
Date:April 09, 2012

This document describes how to write modules in C or C++ to extend the Pythoninterpreter with new modules. Those modules can define new functions but alsonew object types and their methods. The document also describes how to embedthe Python interpreter in another application, for use as an extension language.Finally, it shows how to compile and link extension modules so that they can beloaded dynamically (at run time) into the interpreter, if the underlyingoperating system supports this feature.

This document assumes basic knowledge about Python. For an informalintroduction to the language, seeThe Python Tutorial.The Python Language Referencegives a more formal definition of the language.The Python Standard Library documentsthe existing object types, functions and modules (both built-in and written inPython) that give the language its wide application range.

For a detailed description of the whole Python/C API, see the separatePython/C API Reference Manual.

Previous topic

34. Undocumented Modules

Next topic

1. Extending Python with C or C++

This Page

Quick search

Enter search terms or a module, class or function name.

Navigation

©Copyright 1990-2012, Python Software Foundation.
The Python Software Foundation is a non-profit corporation.Please donate.
Last updated on Apr 09, 2012.Found a bug?
Created usingSphinx 0.6.5.

[8]ページ先頭

©2009-2026 Movatter.jp