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
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
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{
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());
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(...){