(self)
Destructor
Destructor
Destructor
def __del__(self):
        """Destructor"""
        if hasattr(self, 'sock'):
            self.sock.close()
def __del__ ( self ) : if hasattr ( self , 'sock' ) : self . sock . close ( )