This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Running Python Script to Run a C++ Code
Type: enhancement Stage:
Components: IDLE Versions: Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: dominade27, ggenellina, loewis
Priority: normal Keywords:

Created on 2009-01-15 05:29 by dominade27, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
testdll.zip dominade27, 2009-01-15 05:29 C++ Code
Messages (3)
msg79888 - (view) Author: Gil (dominade27) Date: 2009-01-15 05:29
Attached you will find my attachment "testdll.zip", my dilemma was how 
to run the attached C++ program using python scripts.  Please advise.

Thanks,
Gil
msg79889 - (view) Author: Gabriel Genellina (ggenellina) Date: 2009-01-15 06:03
Please post your question to the Python users mailing list: python-
list@python.org -- mirrored as the comp.lang.python newsgroup too.
Also, gmane.org provides a web interfase: http://dir.gmane.org/
gmane.comp.python.general

Back to your question, the easiest way would be to define a C interfase 
(not C++) that you can call directly from Python using the ctypes 
module (available in the standard library since 2.5)
Another good alternative is to use Cython (which evolved from the Pyrex 
project). See http://wiki.python.org/moin/
IntegratingPythonWithOtherLanguages
msg79890 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2009-01-15 07:25
The bug tracker is not a place to obtain help, but to offer help (e.g.
by proposing patches to Python). As Gabriel explains, there are better
places to get help with Python. Closing the report as invalid.
History
Date User Action Args
2022-04-11 14:56:44adminsetgithub: 49202
2009-01-15 07:25:13loewissetstatus: open -> closed
resolution: not a bug
messages: + msg79890
nosy: + loewis
2009-01-15 06:03:40ggenellinasetnosy: + ggenellina
messages: + msg79889
2009-01-15 05:29:17dominade27create