parameters: (self)
docstring: Method that allows this object to treated as an iterator.
docstring_summary: Method that allows this object to treated as an iterator.
docstring_tokens: Method that allows this object to treated as an iterator .
function: def __iter__(self):
          ''' Method that allows this object to treated as an iterator. '''
          for filename in self._filenames:
              # Delete the previously loaded ws, if one exists, then load the
              # new ws.
              self._delete_loaded_ws()
              try:
                  self._load_into_ws(filename)
              except RuntimeError:
                  raise RuntimeError("Problem loading file \"" + filename + "\"")
  
              # Yield the newly loaded ws.
              yield self._loaded_ws
  
          # Final tidy-up.
          self._delete_loaded_ws()
function_tokens: def __iter__ ( self ) : for filename in self . _filenames : # Delete the previously loaded ws, if one exists, then load the # new ws. self . _delete_loaded_ws ( ) try : self . _load_into_ws ( filename ) except RuntimeError : raise RuntimeError ( "Problem loading file \"" + filename + "\"" ) # Yield the newly loaded ws. yield self . _loaded_ws # Final tidy-up. self . _delete_loaded_ws ( )