Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Please advise me good wrapper/library for python. I need to implement simple scripting in c++ app; Under "good" I mean pretty understandable, well documented, no memory leaking, fast. For creating base interface of GameObject on Python and C++; Your own experience and useful links will be nice!!! I found link about it, but I need more specific within gamedev context. What combinations of libraries you used for python integration into c++? For example about ogre-python it said

built using Py++ and Boost.Python library

And one more question, maybe someone of you know how Python was integrated into BigWorld engine (it's own port or some library)?

Thank you!!!

share|improve this question
2  
SWIG, Boost, or roll-your-own. They are all well documented and any memory leaks introduced are usually your own. Another possibility: Mono with Boo or IronPython, but embedding Mono probably takes a little more effort. –  michael.bartnett Sep 29 '12 at 20:43
add comment

1 Answer

up vote 1 down vote accepted

I see no reason to avoid boost.python in game development. When you create a game, you don't just instantiate some template. You are designing it by yourself so it's of no generic design that some python library could adhere to.

Civilization IV uses boost.python, for example.

share|improve this answer
    
There's plenty of reasons to avoid boost.python. 1. Boost. 2. Boost. 3. Boost. It is an extremely heavy library that noticeably increases project build time. Anything that severely reduces iteration speed is harmful. –  snake5 Sep 29 '12 at 20:52
    
It depends on your needs. There is also a of plenty reasons not to avoid it. 1. Boost, 2. Boost, 3. Boost. It's reliable, compatible with stl, well documented, and, Boost libs usually becomes C++ standard. Not that this will become, but it tells you something about it. –  Srđan Sep 29 '12 at 21:03
    
I'm not saying STL is better. Most of it should also be avoided because of the same reasons. The fact that most professional game developers think so might tell you something about it. –  snake5 Sep 30 '12 at 5:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.