Re: [PATCH 04/15] python/qmp: clear events on get_events() call

2021-09-17 Thread John Snow
On Fri, Sep 17, 2021 at 8:51 AM Hanna Reitz wrote: > On 17.09.21 07:40, John Snow wrote: > > All callers in the tree *already* clear the events after a call to > > get_events(). Do it automatically instead and update callsites to remove > > the manual clear call. > > > > These semantics are quite

Re: [PATCH 04/15] python/qmp: clear events on get_events() call

2021-09-17 Thread Hanna Reitz
On 17.09.21 07:40, John Snow wrote: All callers in the tree *already* clear the events after a call to get_events(). Do it automatically instead and update callsites to remove the manual clear call. These semantics are quite a bit easier to emulate with async QMP, and nobody appears to be abusin

[PATCH 04/15] python/qmp: clear events on get_events() call

2021-09-16 Thread John Snow
All callers in the tree *already* clear the events after a call to get_events(). Do it automatically instead and update callsites to remove the manual clear call. These semantics are quite a bit easier to emulate with async QMP, and nobody appears to be abusing some emergent properties of what hap