X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=news%2Frelease-0.6.mdwn;h=a7dc80c8435406ddb02d3b585f2c0d0b8633d580;hb=c55d865f0937c44b52fcb9331da4c917e8ebe9a3;hp=b16b8aaa19676410e58261284d1d18a71dee8349;hpb=908dfb2a40ad82cef8bb6268b884b2f0a2ea652c;p=obsolete%2Fnotmuch-wiki diff --git a/news/release-0.6.mdwn b/news/release-0.6.mdwn index b16b8aa..a7dc80c 100644 --- a/news/release-0.6.mdwn +++ b/news/release-0.6.mdwn @@ -239,30 +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 - 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