I am currently
working on a program where it would be really useful if a connection had
a __next__ method, because then it would be much easier to iterate
over. It would just be an alias to recv, but would allow you to do
things like merging the results of connections using heapq.merge that
currently are highly non-trivial to accomplish. Is there a reason this
API isn't supported?
Oscar Smith