[Python-Dev] Iterable sockets? (original) (raw)
Skip Montanaro skip@pobox.com
Thu, 13 Mar 2003 21:03:58 -0600
- Previous message: [Python-Dev] Iterable sockets?
- Next message: [Python-Dev] Iterable sockets?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> Um, why doesn't the makefile() method do what you want?
Andrew> The short answer is that it does, but not very tidily - by
Andrew> turning the socket object into a file object, I lose the
Andrew> original socket object functionality (for example, shutdown()).
Would it be sufficient for the close() method on the object returned by sock.makefile() to call shutdown(2) on the underlying socket?
Skip
- Previous message: [Python-Dev] Iterable sockets?
- Next message: [Python-Dev] Iterable sockets?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]