readlines() on a socket

Gregory Bond gnb at itga.com.au
Wed Oct 24 09:09:09 CEST 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