Re: python bindings memory management

Subject: Re: python bindings memory management

Date: Sun, 19 Nov 2017 19:11:42 -0400

To: Gaute Hope, notmuch@notmuchmail.org

Cc:

From: David Bremner


Gaute Hope <eg@gaute.vetsj.com> writes:

> Hi,
>
> when writing this small script [0][1] using the notmuch python bindings I 
> had to manually delete the python objects in the right order. Otherwise 
> it segfaults when exiting, presumably because memory dependencies / 
> cleanup isn't done correctly when the Python GC gets going. Essentially 
> I have to delete the objects in the order of their dependency:

Assuming this is python > 3.3, it sounds related to

     id:5694CA65.8010400@fastmail.net

See in particular

    id:20160112185107.GA21580@odin.tremily.us
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: