I want to read messages from either a Queue.Queue or a TCP socket, whichever comes first. How can it be achieved without resorting to 2 threads ? Platform is CPython 2.7.5 on Windows

Edit
Report