Open
Description
Asyncio's _ProactorReadPipeTransport
can also feed bytearray
objects in the data_received
callback from asyncio.Protocol
.
- First,
self._data
is abytearray
here: https://github.com/python/cpython/blob/f8a736b8e14ab839e1193cb1d3955b61c316d048/Lib/asyncio/proactor_events.py#L191 - This gets passed to `self._data_received here: https://github.com/python/cpython/blob/f8a736b8e14ab839e1193cb1d3955b61c316d048/Lib/asyncio/proactor_events.py#L230
- The passed into
Protocol.data_received
here: https://github.com/python/cpython/blob/f8a736b8e14ab839e1193cb1d3955b61c316d048/Lib/asyncio/proactor_events.py#L274
Shall I make a PR with a fix for this?
Related cpython issue: python/cpython#123496 - I'm not sure whether or not it should be fixed in the stdlib instead.