parameters: (self)
docstring: This makes sure that no system resources are left open. Python only
          garbage collects Python objects. OS file descriptors are not Python
          objects, so they must be handled explicitly. If the child file
          descriptor was opened outside of this class (passed to the constructor)
          then this does not close it.
docstring_summary: This makes sure that no system resources are left open. Python only
          garbage collects Python objects. OS file descriptors are not Python
          objects, so they must be handled explicitly. If the child file
          descriptor was opened outside of this class (passed to the constructor)
          then this does not close it.
docstring_tokens: This makes sure that no system resources are left open . Python only garbage collects Python objects . OS file descriptors are not Python objects so they must be handled explicitly . If the child file descriptor was opened outside of this class ( passed to the constructor ) then this does not close it .
function: def __del__(self):
          """This makes sure that no system resources are left open. Python only
          garbage collects Python objects. OS file descriptors are not Python
          objects, so they must be handled explicitly. If the child file
          descriptor was opened outside of this class (passed to the constructor)
          then this does not close it. """
  
          if not self.closed:
              # It is possible for __del__ methods to execute during the
              # teardown of the Python VM itself. Thus self.close() may
              # trigger an exception because os.close may be None.
              # -- Fernando Perez
              try:
                  self.close()
              except:
                  pass
function_tokens: def __del__ ( self ) : if not self . closed : # It is possible for __del__ methods to execute during the # teardown of the Python VM itself. Thus self.close() may # trigger an exception because os.close may be None. # -- Fernando Perez try : self . close ( ) except : pass