Feature or enhancement
Proposal:
There's new PyBytesWriter() API:
There's an ongoing effort of introducing it in various places:
With its PyList_Append
| r = PyList_Append(chunks, data); |
and PyBytes_Join:
the io.RawIOBase.readall looks like the ideal candidate for PyBytesWriter.
Notably, io.RawIOBase is used internally across many modules:
https://github.com/search?q=repo%3Apython%2Fcpython+io.RawIOBase+path%3A%2F%5ELib%5C%2F%2F&type=code
and some even call readall explicitly sometimes:
| return self.readall() |
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response