Re: [C++-sig] How can I make myself usefull?

2012-05-12 Thread Jim Bosch
On 05/08/2012 02:14 AM, Matthew Scouten wrote: Hello, I have recently been laid off from a job where a made a lot of good use of Boost.Python. I would like to give something back (while incidentally keeping my skills from getting rusty). I have already been following the boost-python tag

Re: [C++-sig] Extensive memory errors upon C++ destruction and data transfer from numpy

2012-05-12 Thread Jim Bosch
Well, I'm afraid you're jumping into a number of thorny bushes at once here, trying to make C++ code talk to NumPy through Boost.Python while learning C++. So I'll start with a few principles: 1) Never call a destructor yourself, in C++ or in Python. That should always happen automatically w

Re: [C++-sig] Nested Boost::Python dictionaries

2012-05-12 Thread DarkAnt
Thanks Jim! On Sat, May 12, 2012 at 4:03 PM, Jim Bosch wrote: > On 05/12/2012 12:22 PM, DarkAnt wrote: >> >> I'm trying to create a boost::python::dict that stores another >> boost::python::dict. >> >> int main() >> { >>        Py_Initialize(); >>        boost::python::dict parent; >>        try{

Re: [C++-sig] Nested Boost::Python dictionaries

2012-05-12 Thread Jim Bosch
On 05/12/2012 12:22 PM, DarkAnt wrote: I'm trying to create a boost::python::dict that stores another boost::python::dict. int main() { Py_Initialize(); boost::python::dict parent; try{ parent["child_dict"] = boost::make_shared(boost::python::dict());

[C++-sig] Nested Boost::Python dictionaries

2012-05-12 Thread DarkAnt
I'm trying to create a boost::python::dict that stores another boost::python::dict. int main() { Py_Initialize(); boost::python::dict parent; try{ parent["child_dict"] = boost::make_shared(boost::python::dict()); } catch(...){