[issue46194] Wrong base class for transport returned by loop.create_datagram_endpoint()

Andrew Svetlov report at bugs.python.org
Wed Dec 29 09:56:23 EST 2021


New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:

Selector-based event loops returns `_SelectorDatagramTransport` which inherits `asyncio.Transport` instead of `asyncio.DatagramTransport`.

isinstance(transp, asyncio.DatagramTransport) fails.
It doesn't affect the actual execution since `transp.sendto()` and `transp.error_received()` are correctly implemented.

The bug doesn't affect Windows proactor-based implementation.

The fix is relatively easy, a champion is welcome!

----------
components: asyncio
messages: 409309
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Wrong base class for transport returned by loop.create_datagram_endpoint()
versions: Python 3.10, Python 3.11, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46194>
_______________________________________


More information about the Python-bugs-list mailing list