Lars Kotthoff <lists@larsko.org> writes: > Here's some minimal code to illustrate the problem: > > > import notmuch2 > > db = notmuch2.Database() > > # this works > msgs = db.messages("date:today") > for msg in msgs: > print(msg.messageid) > > # this doesn't segfault, but prints truncated IDs > msgs = [m for m in db.messages("date:today") if m.messageid] > print(len(msgs)) > for msg in msgs: > print(msg.messageid) > > # this segfaults > msgs = list(db.messages("date:today")) > print(len(msgs)) > for msg in msgs: > print(msg.messageid) Hi Floris; Any idea what is going on with these iterators? d _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org