![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Python weds C++
I am looking for good information or a tutorial on the use of Python as a glue language with C and C++. Does anyone have experience with that sort of advanced thing?
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#2 |
|
Programmer
|
Boost.Python and SWIG are usually used to automate embedding Python in an application. Both have very good documentation.
But if you're feeling rather masochistic, you can always use the raw API. ![]() |
|
|
|
|
|
#3 |
|
Expert Programmer
|
You'll find multiple ways to combine Python and other languages here.
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
That is a good sight linked above. It all depends on what you want to do. If you want to embed Python in you C++ program, I recommend Boost.Python over Swig. You should also check out Py++(make sure to get the SVN version) which allows you to generate Boost.Python wrappers for you C++ code just like Swig does. I use this in one of my projects and it works wonderfully.
If you just need to optimize a small method weave looks like a very promising method but I have never used it myself. The only issue I see with weave is that you need to have a complier present to start you program. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [tutorial] Python for programming beginners | coldDeath | Python | 30 | Dec 14th, 2005 11:35 AM |
| If you want to learn Python or improve your Python skills | coldDeath | Python | 2 | Nov 23rd, 2005 12:27 AM |
| Convert Python script to C++ code | clanotheduck | Python | 17 | Sep 25th, 2005 8:55 AM |
| Advanced Python Tricks | Arevos | Python | 19 | Sep 24th, 2005 7:39 AM |
| Python - A Programmers Introduction | coldDeath | Python | 17 | Aug 19th, 2005 12:41 PM |