Regarding exception handling

Aggelos I. Orfanakos aorfanakos at gmail.com
Mon Jan 31 00:19:39 CET 2005


Thanks. This should now be OK:

#try:
#    try:
#        s = ... # socket opens
#
#        # various code ...
#    except socket.error, x:
#        # exception handling
#finally:
#    s.close() # socket closes




More information about the Python-list mailing list