Re: SEGFAULTs with Python bindings and generators

2020-10-02 Thread Daniel Shahaf
Yasuhito FUTATSUKI wrote on Wed, 30 Sep 2020 01:08 +00:00: > I also confirmed it occured in svn_fs_fs.is_packed_rev(). > > Perhaps SvnContentProxy object also keep fsroot object until the > stream is closed. I found a note in docstring for svn_fs_file_contents(): > > """ > * @todo kff: I am worr

Re: SEGFAULTs with Python bindings and generators

2020-09-29 Thread C. Michael Pilato
I was just about to say that I'd found something else that seems to work! --- pysvnget.nopools 2020-09-29 09:34:52.233513574 -0400 > +++ pysvnget 2020-09-29 22:10:51.531129106 -0400 > @@ -11,6 +11,7 @@ > class SvnContentProxy: >def __init__(self, fsroot, path): >self.stream = svn.fs.f

Re: SEGFAULTs with Python bindings and generators

2020-09-29 Thread Yasuhito FUTATSUKI
On 2020/09/30 10:08, Yasuhito FUTATSUKI wrote: > On 2020/09/30 8:51, C. Michael Pilato wrote: >> Thanks for the reply. And I see what you're trying to do there, but in >> practice it doesn't seem to work. The swig proxy object doesn't allow >> arbitrary attribute creation: >> >> AttributeError: Y

Re: SEGFAULTs with Python bindings and generators

2020-09-29 Thread Yasuhito FUTATSUKI
On 2020/09/30 8:51, C. Michael Pilato wrote: > Thanks for the reply. And I see what you're trying to do there, but in > practice it doesn't seem to work. The swig proxy object doesn't allow > arbitrary attribute creation: > > AttributeError: You cannot add instance attributes to > proxy of > >

Re: SEGFAULTs with Python bindings and generators

2020-09-29 Thread C. Michael Pilato
Thanks for the reply. And I see what you're trying to do there, but in practice it doesn't seem to work. The swig proxy object doesn't allow arbitrary attribute creation: AttributeError: You cannot add instance attributes to proxy of > I tried to work around this using this construct: -

Re: SEGFAULTs with Python bindings and generators

2020-09-29 Thread Yasuhito FUTATSUKI
On 2020/09/29 22:35, C. Michael Pilato wrote: > Sorry for the self-reply, but I thought I'd note that if I tweak > pysvnget thusly, the SEGFAULTs stop: > > --- pysvnget 2020-09-29 09:34:07.918002584 -0400 >> +++ pysvnget.pools 2020-09-29 09:33:54.278153037 -0400 >> @@ -21,17 +21,17 @@ >>

Re: SEGFAULTs with Python bindings and generators

2020-09-29 Thread C. Michael Pilato
Sorry for the self-reply, but I thought I'd note that if I tweak pysvnget thusly, the SEGFAULTs stop: --- pysvnget 2020-09-29 09:34:07.918002584 -0400 > +++ pysvnget.pools 2020-09-29 09:33:54.278153037 -0400 > @@ -21,17 +21,17 @@ >yield chunk >svn.core.svn_stream_close(self.str