Re: [Qemu-devel] [PATCH 09/19] qapi: Remove null from schema language

2019-09-17 Thread Eric Blake
On 9/14/19 10:34 AM, Markus Armbruster wrote: > We represent the parse tree as OrderedDict. We fetch optional dict > members with .get(). So far, so good. > > We represent null literals as None. .get() returns None both for > "absent" and for "present, value is the null literal". Uh-oh. > > T

[Qemu-devel] [PATCH 09/19] qapi: Remove null from schema language

2019-09-14 Thread Markus Armbruster
We represent the parse tree as OrderedDict. We fetch optional dict members with .get(). So far, so good. We represent null literals as None. .get() returns None both for "absent" and for "present, value is the null literal". Uh-oh. Test features-if-invalid exposes this bug: "'if': null" is mi