507
Comment:
|
873
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
* [http://www.swig.org/ SWIG] * [http://www.boost.org/libs/python/doc/ BoostPython] * [http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ pyrex] |
* [http://www.swig.org/ SWIG] - generate extension module from your .h files * ["boost.python"] - write (tiny) C++ class to wrap your classes in an extension module * [http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Pyrex] - write your extension module on Python (!) |
Line 8: | Line 8: |
* ["weave"] | * ["weave"] - include C code lines in Python program |
Line 13: | Line 13: |
[[There are also interesting solutions for co-operation between Python and such languages as Tcl, Perl, Fortran, Prolog, and many others. We'll write more on these subjects, in time.]] |
There a various tools which make it easier to bridge the gap between Python and C/C++:
[http://www.swig.org/ SWIG] - generate extension module from your .h files
- ["boost.python"] - write (tiny) C++ class to wrap your classes in an extension module
[http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Pyrex] - write your extension module on Python
- ["weave"] - include C code lines in Python program
[Hint: The idea is to create pages for the stuff, not just link it.]
[wiki:Thinki/UsingPythonWithOtherLanguages Much more extensive page on Thinki]
[[There are also interesting solutions for co-operation between Python and such languages as Tcl, Perl, Fortran, Prolog, and many others. We'll write more on these subjects, in time.]]