swig, python, lifetimes
From: David Glasser <glasser_at_davidglasser.net>
Date: Thu, 15 May 2008 12:52:29 -0700
So, let's say I write the following swig-py code:
def foo():
That's fine. Now let's say I do this:
def DoUpdate(editor):
def foo():
This can lead to segfaults. Why? Because e and eb are destroyed at
In my particular code, I was actually wrapping r and rb in a Reporter
I talked to epg about this for a while. Ideally what one would want
The basic issue is that a lot of our APIs have the informal
Maybe we could add a function to svn's swig-py that would allow the
def DoUpdate(editor):
where this would incref the first argument, and somehow get a
swig experts, is this feasible?
--dave
-- David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: dev-help_at_subversion.tigris.orgReceived on 2008-05-15 21:52:42 CEST |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.