qemu-cr16/python/qemu/aqmp
John Snow 3bc72e3aed python/aqmp: add __del__ method to legacy interface
asyncio can complain *very* loudly if you forget to back out of things
gracefully before the garbage collector starts destroying objects that
contain live references to asyncio Tasks.

The usual fix is just to remember to call aqmp.disconnect(), but for the
sake of the legacy wrapper and quick, one-off scripts where a graceful
shutdown is not necessarily of paramount imporance, add a courtesy
cleanup that will trigger prior to seeing screenfuls of confusing
asyncio tracebacks.

Note that we can't *always* save you from yourself; depending on when
the GC runs, you might just seriously be out of luck. The best we can do
in this case is to gently remind you to clean up after yourself.

(Still much better than multiple pages of incomprehensible python
warnings for the crime of forgetting to put your toys away.)

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Beraldo Leal <bleal@redhat.com>
2022-01-21 16:01:31 -05:00
..
__init__.py python/aqmp: fix docstring typo 2022-01-21 16:01:31 -05:00
aqmp_tui.py python/aqmp: use absolute import statement 2022-01-10 18:22:33 -05:00
error.py
events.py python/aqmp: Return cleared events from EventListener.clear() 2021-10-12 12:22:10 -04:00
legacy.py python/aqmp: add __del__ method to legacy interface 2022-01-21 16:01:31 -05:00
message.py python/aqmp: add QMP Message format 2021-09-27 12:10:29 -04:00
models.py python/aqmp: Add dict conversion method to Greeting object 2021-10-12 12:22:10 -04:00
protocol.py Python/aqmp: fix type definitions for mypy 0.920 2022-01-10 18:22:44 -05:00
py.typed
qmp_client.py python/aqmp: fix send_fd_scm for python 3.6.x 2021-11-22 18:41:21 -05:00
util.py python/aqmp: add asyncio_run compatibility wrapper 2021-09-27 12:10:29 -04:00