readlines() on a socket

Gregory Bond gnb at itga.com.au
Wed Oct 24 03:09:09 EDT 2001


Skip Montanaro <skip at pobox.com> writes:

> Socket objects have a makefile() method that will return a file object.

Fabulous.  Thanks!

> (Also, note that you should not assign the result of the connect method.  I
> believe it simply returns None.)

Yup.  I made a typo in the example code.



More information about the Python-list mailing list