Re: [Qemu-devel] [PATCH] event_match: always match on None value

2019-05-28 Thread John Snow
On 5/27/19 9:24 AM, Max Reitz wrote: > On 24.05.19 20:02, John Snow wrote: >> Before, event_match didn't always recurse if the event value was not a >> dictionary, and would instead check for equality immediately. >> >> By delaying equality checking to post-recursion, we can allow leaf >> values

Re: [Qemu-devel] [PATCH] event_match: always match on None value

2019-05-27 Thread Max Reitz
On 24.05.19 20:02, John Snow wrote: > Before, event_match didn't always recurse if the event value was not a > dictionary, and would instead check for equality immediately. > > By delaying equality checking to post-recursion, we can allow leaf > values like "5" to match "None" and take advantage o

[Qemu-devel] [PATCH] event_match: always match on None value

2019-05-24 Thread John Snow
Before, event_match didn't always recurse if the event value was not a dictionary, and would instead check for equality immediately. By delaying equality checking to post-recursion, we can allow leaf values like "5" to match "None" and take advantage of the generic None-returns-True clause. This