Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2007, 12:58 PM   #1
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
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!
Dietrich is offline   Reply With Quote
Old Jan 14th, 2007, 3:48 PM   #2
niteice
Programmer
 
niteice's Avatar
 
Join Date: Aug 2005
Posts: 98
Rep Power: 3 niteice is on a distinguished road
Send a message via AIM to niteice
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.
niteice is offline   Reply With Quote
Old Jan 14th, 2007, 4:25 PM   #3
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 837
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
You'll find multiple ways to combine Python and other languages here.
titaniumdecoy is offline   Reply With Quote
Old Jan 14th, 2007, 5:42 PM   #4
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
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.
Game_Ender is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:39 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC