Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python closing socket good way

with contextlib.ignore(OSError),
         closing(sock):
        sock.shutdown()
Source by news.ycombinator.com #
 
PREVIOUS NEXT
Tagged: #python #closing #socket #good
ADD COMMENT
Topic
Name
3+6 =