Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::SCOP::Raf::Iterator::__init__ (   self,
  handle,
  parser = None 
)
Create an object that iterates over a RAF file.

handle -- file-like object.

parser -- an optional Parser object to change the results into
  another form.  If set to None, then the raw contents
  of the file will be returned.
  

Definition at line 362 of file Raf.py.

                                           :
        """Create an object that iterates over a RAF file.

        handle -- file-like object.
        
        parser -- an optional Parser object to change the results into
                  another form.  If set to None, then the raw contents
                  of the file will be returned.
                  
        """
        import warnings
        warnings.warn("Bio.SCOP.Raf.Iterator is deprecated. Please use Bio.SCOP.Raf.parse() instead.", DeprecationWarning)

        from types import FileType, InstanceType
        if type(handle) is not FileType and type(handle) is not InstanceType:
            raise TypeError("I expected a file handle or file-like object")
        self._handle = handle
        self._parser = parser


Generated by  Doxygen 1.6.0   Back to index