struct.unpack() on a stream

Ulrich Eckhardt eckhardt at
Fri Feb 27 06:29:16 EST 2009


I have a socket from which I would like to parse some data, how would I do
that? Of course, I can manually read data from the socket until unpack()
stops complaining about a lack of data, but that sounds rather inelegant.

Any better suggestions?


Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

More information about the Python-list mailing list