python bindings memory management

David Bremner david at tethera.net
Sun Nov 19 15:11:42 PST 2017


Gaute Hope <eg at 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 at fastmail.net

See in particular

    id:20160112185107.GA21580 at odin.tremily.us


More information about the notmuch mailing list