From: Stefan Behnel <stefan...@behnel.de>
Date: Sat, 15 Sep 2012 07:47:08 +0200
Local: Sat, Sep 15 2012 1:47 am
Subject: Re: [cython-users] weird crash with cdef classes and C++ STL containers
Bradley Froehle, 13.09.2012 18:22:
> On Thursday, September 13, 2012 8:59:43 AM UTC-7, Robert Bradshaw wrote:
+1 for supporting this in Cython. Any volunteering to make this work as in
>> On Thu, Sep 13, 2012 at 1:58 AM, Dag Sverre Seljebotn wrote: >>> On 09/13/2012 07:26 AM, David Warde-Farley wrote: >>>> On Thu, Sep 13, 2012 at 12:02 AM, Robert Bradshaw wrote: >>>>> It's storing borrowed references, so it'll work as long as something >>>> Indeed. I'm confused, though: in the example I've given, all 4 nodes >>> If you want to do this, write an auto_ptr-like class, a class >>> Then simply create std::vector<pyptr> rather than >>> This *should* work, but to my knowledge there isn't any code available >> I was about to suggest exactly this. Syntax is a good question though, > A quick search turned up a lot of smart pointer adapters for `PyObject*`s. "std::vector<object>" is definitely appreciated. Stefan
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||