C/C++ & Python


Hier some experiences about embedding or extending Python [3] with C are discussed. This site in NOT designed to be a Tutorial. It is a reference to show ways to explore the best of Python in or with C/C++.

Contents:


Python Module - Build a Python module from a C code.
Python Module 2 - Expand the Python Module with more functions.
SWIG - Create the Python model source file with SWIG.
Compiling - Create a Python binary program

Database:


Python Module arrowUp.jpg

Build a Python module from a C code.

Python Module 2 arrowUp.jpg

Expand the Python Module with more functions.

SWIG arrowUp.jpg

Create the Python model source file with SWIG.

Compiling - Create a Python binary program
[compile ]

Compiling arrowUp.jpg

Create a Python binary program.

Bibliography
1. Fötsch, Michael. Python extensions in C++ using SWIG. URL: http://www.geocities.com/foetsch/python/extending_python.htm, 2007.
2. van Rossum, Guido. Python/C API reference manual. URL: http://docs.python.org/api/api.html . Python Software Foundation. Release 2.5, 2006.
3. Copyright © Python Software Foundation. Python. URL: http://www.python.org .
4. Beazley, David M. Interfacing C/C++ and Python with SWIG. Department of Computer Science, University of Chicago. Chicago, Illinois 60615. 7th International Python Conference, 1998.
5. Copyright © University of Chicago. SWIG — Simplified Wrapper and Interface Generator. URL: http://www.swig.org .
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License