A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-March/034043.html below:

[Python-Dev] Iterable sockets?

[Python-Dev] Iterable sockets? [Python-Dev] Iterable sockets?Skip Montanaro skip@pobox.com
Thu, 13 Mar 2003 21:03:58 -0600
    >> 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4