[C++-sig] Is boost::python good for scripting?

Roman Yakovenko roman.yakovenko at gmail.com
Mon Jan 7 09:14:47 CET 2008


On Jan 7, 2008 10:07 AM, Simon Pickles <sipickles at hotmail.com> wrote:
> Hi,
>
> I have a c++ game engine. I also use a lot of python, mainly for my own
> tools and small apps.
>
> I'm hoping I can use Python as a scripting language in my c++ engine
> (which is already well developed).
>
> Looking at boost::python, its main emphasis seems to be on exposing c++
> to python. However, I am looking to do the reverse.
>
> Ideally, I'd like to be able to write small modules in Python,
> effectively functions loaded and run at call-time by the c++ engine, to
> which I could pass c++ data structures for processing.
>
> Could anyone give me a pointer to getting started using python in c++?
>
> So kind!

Example of a product that uses such strategy:
http://www.eve-online.com/faq/faq_07.asp
Start here http://boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html
and continue with Google :-)


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list