using sockets the same as in Ruby ?

Peter Hansen peter at engcorp.com
Mon Feb 17 09:02:03 EST 2003


Markus Jais wrote:
> 
> that is, how can I read from a socket line by line ?
> in the doc I found only the recv function which needs a buffer size.

Look up the makefile() method on the socket object.  With that, I 
believe you will easily find how to do what you want.

-Peter




More information about the Python-list mailing list