Re: [PATCH v5 12/16] python/machine.py: Add _qmp access shim

2020-07-13 Thread Philippe Mathieu-Daudé
On 7/10/20 7:22 AM, John Snow wrote: > Like many other Optional[] types, it's not always a given that this > object will be set. Wrap it in a type-shim that raises a meaningful > error and will always return a concrete type. > > Signed-off-by: John Snow > --- > python/qemu/machine.py | 24 ++

[PATCH v5 12/16] python/machine.py: Add _qmp access shim

2020-07-09 Thread John Snow
Like many other Optional[] types, it's not always a given that this object will be set. Wrap it in a type-shim that raises a meaningful error and will always return a concrete type. Signed-off-by: John Snow --- python/qemu/machine.py | 24 +--- 1 file changed, 13 insertions(+