Back to index

python-biopython  1.60
Classes | Functions
Bio.SCOP.Dom Namespace Reference

Classes

class  Record

Functions

def parse

Function Documentation

def Bio.SCOP.Dom.parse (   handle)
Iterates over a DOM file, returning a Dom record for each line
in the file.

Arguments:
    
    handle -- file-like object.

Definition at line 67 of file Dom.py.

00067 
00068 def parse(handle):
00069     """Iterates over a DOM file, returning a Dom record for each line
00070     in the file.
00071 
00072     Arguments:
00073         
00074         handle -- file-like object.
00075     """ 
00076     for line in handle:
00077         if line.startswith('#'):
00078             continue
00079         yield Record(line)