Back to index

python-biopython  1.60
Public Member Functions
Bio.ParserSupport.AbstractParser Class Reference
Inheritance diagram for Bio.ParserSupport.AbstractParser:
Inheritance graph

List of all members.

Public Member Functions

def parse
def parse_str
def parse_file

Detailed Description

Base class for other parsers.

Definition at line 50 of file

Member Function Documentation

def Bio.ParserSupport.AbstractParser.parse (   self,

Reimplemented in Bio.Blast.NCBIStandalone.BlastErrorParser, Bio.Blast.NCBIStandalone.PSIBlastParser, and Bio.Blast.NCBIStandalone.BlastParser.

Definition at line 54 of file

00055     def parse(self, handle):
00056         raise NotImplementedError("Please implement in a derived class")

Here is the caller graph for this function:

def Bio.ParserSupport.AbstractParser.parse_file (   self,

Definition at line 60 of file

00061     def parse_file(self, filename):
00062         h = open(filename)
00063         try:
00064             retval = self.parse(h)
00065         finally:
00066             h.close()
00067         return retval

Here is the call graph for this function:

def Bio.ParserSupport.AbstractParser.parse_str (   self,

Definition at line 57 of file

00058     def parse_str(self, string):
00059         return self.parse(StringIO.StringIO(string))

Here is the call graph for this function:

The documentation for this class was generated from the following file: