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.