Regarding exception handling

Aggelos I. Orfanakos aorfanakos at gmail.com
Sun Jan 30 18:19:39 EST 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