Re: [PATCH v2] python: Replace asyncio.get_event_loop for Python 3.14

2025-07-15 Thread Daniel P . Berrangé
On Tue, Jul 15, 2025 at 12:27:52PM +0100, Richard W.M. Jones wrote: > In Python 3.14, no asyncio event loop gets generated automatically. > Instead create one when we need it. This should work with Python 3.13 > as well. This change was suggested here: > > https://bugzilla.redhat.com/show_bug.cg

[PATCH v2] python: Replace asyncio.get_event_loop for Python 3.14

2025-07-15 Thread Richard W.M. Jones
Updated the patch with the suggestions from Miro Hrončok & Daniel Berrangé, and retested it with Python 3.14 b4. Rich.

[PATCH v2] python: Replace asyncio.get_event_loop for Python 3.14

2025-07-15 Thread Richard W.M. Jones
In Python 3.14, no asyncio event loop gets generated automatically. Instead create one when we need it. This should work with Python 3.13 as well. This change was suggested here: https://bugzilla.redhat.com/show_bug.cgi?id=2375004#c4 See-also: https://docs.python.org/3.14/whatsnew/3.14.html#id7