[C++-sig] pyste question

Nicodemus nicodemus at esss.com.br
Tue Aug 24 16:01:21 CEST 2004

Hi Andrew,

Andrew Sutton wrote:

>On Monday 23 August 2004 02:54 am, Baptiste Lepilleur wrote:
>>If I remember correctly, you need to add an 'Include' statement with a file
>>that contains the function you are refering to in add_method().
>>If it fails, you can still fallback in 'class_code' to inject your method
>>definition (you can find some example of this at:
>>http://cvs.sourceforge.net/viewcvs.py/ogre/ogreaddons/pyogre/src/pyogre/ ).
>thanks for the response. unfortunately, i just realized that pyste doesn't 
>quite generate code that's entirely right me (i can't derive some of my 
>classes like that). guess it's back to straight boost.python.

I guess one alternative would be to create a subclass with the special 
methods you want, and export that instead of the original class.


More information about the Cplusplus-sig mailing list