Boost.Python create extra functions not in wrapped object

2007-04-19 Thread Stou Sandalski
Hi, I have a python library created by wrapping the C++ library using Boost.Python, the problem is that the wrappers are not very pythonic so I want to add some methods that do not exist in the C+ + implementation, that would create a better Python interface. For example to initialize the dat

Re: Pass 'this' to a python script in an extended application

2007-01-19 Thread Stou Sandalski
I figured it out. I just made my main class a singleton and it worked fine... it always works right after I post a message =) Stou Stou Sandalski wrote: > Hi, > > I have an application consisting of a main C++ class (and other > classes) stored inside a DLL. The application uses

Pass 'this' to a python script in an extended application

2007-01-18 Thread Stou Sandalski
Hi, I have an application consisting of a main C++ class (and other classes) stored inside a DLL. The application uses a small main executable that links against the main DLL, then initializes and runs the core class. The python bindings are inside a .pyd module that also links against the core