[C++-sig] C++ new/delete with python

Chris Targett xin at xlevus.net
Thu Nov 25 10:15:52 CET 2004

I've got some code.

   class test {
      int *objects;
   objects = new int[10];

I want to expose my class `test` to python via Boost, Is there anything special
I have to do to get this to expose properly?

I'm not too fussed about the constructor but if its workable then thats cool.

Is it possible to have a `new` defined array work within python?


More information about the Cplusplus-sig mailing list