2 ms·
The current stream interface is still somewhat awkward. Apart from the question whether the reader and writer really need to separate objects, there's also the
by euiq 6y ago
The current stream interface is still somewhat awkward. Apart from the question whether the reader and writer really need to separate objects, there's also the problem that the write and close methods are synchronous—in order to use them correctly, it's necessary to throw in asynchronous calls to drain and wait_closed.
There was a plan to fix this in Python 3.8, but that never went anywhere.