Lars Kotthoff <[email protected]> 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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to