X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=news%2Frelease-0.6.mdwn;h=a7dc80c8435406ddb02d3b585f2c0d0b8633d580;hb=b622167a8da521b14e953b10244c634005326247;hp=b52385fb65a95d23cd0399ae32229e4c5ee3a5cd;hpb=630463fe555f00302ca9c7848dddbddcc00a657b;p=obsolete%2Fnotmuch-wiki diff --git a/news/release-0.6.mdwn b/news/release-0.6.mdwn index b52385f..a7dc80c 100644 --- a/news/release-0.6.mdwn +++ b/news/release-0.6.mdwn @@ -239,29 +239,29 @@ Bindings improvements (docs online at http://packages.python.org/notmuch/) - New bindings: +New bindings: - - `Message().get_filenames()`, - - `Message().tags_to_maildir_flags()`, `Message().maildir_flags_to_tags()` - - `list(Threads())` and `list(Messages)` works now + - `Message().get_filenames()`, `Message().tags_to_maildir_flags()`, + `Message().maildir_flags_to_tags()`, `list(Threads())` and + `list(Messages)` works now + - `Message().__cmp__()` and `__hash__()` - - `Message().__cmp__() and __hash__()` +These allow, for example: - These allow, for example: + if msg1 == msg2: ... - if msg1 == msg2: ... +As well as set arithmetic on `Messages()`: - As well as set arithmetic on `Messages()`: + s1, s2 = set(msgs1), set(msgs2) + s1.union(s2) + s2 -= s1 - s1, s2 = set(msgs1), set(msgs2) - s1.union(s2) - s2 -= s1 +Removed: - Removed: + - `len(Messages())` as it exhausted the iterator - - len(Messages()) as it exhausted the iterator. - Use len(list(Messages())) or - `Query.count_messages()` to get the length. +Use `len(list(Messages()))` or `Query.count_messages()` +to get the length. ### Added initial Go bindings in bindings/go