Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.Entrez.Parser.StructureElement Class Reference

List of all members.

Public Member Functions

def __init__
def __setitem__
def __repr__

Public Attributes

 listkeys

Detailed Description

Definition at line 95 of file Parser.py.


Constructor & Destructor Documentation

def Bio.Entrez.Parser.StructureElement.__init__ (   self,
  keys 
)

Definition at line 96 of file Parser.py.

00096 
00097     def __init__(self, keys):
00098         dict.__init__(self)
00099         for key in keys:
00100             dict.__setitem__(self, key, [])
        self.listkeys = keys

Here is the caller graph for this function:


Member Function Documentation

Definition at line 106 of file Parser.py.

00106 
00107     def __repr__(self):
00108         text = dict.__repr__(self)
00109         try:
00110             attributes = self.attributes
00111         except AttributeError:
00112             return text
00113         return "DictElement(%s, attributes=%s)" % (text, repr(attributes))
00114 

def Bio.Entrez.Parser.StructureElement.__setitem__ (   self,
  key,
  value 
)

Definition at line 101 of file Parser.py.

00101 
00102     def __setitem__(self, key, value):
00103         if key in self.listkeys:
00104             self[key].append(value)
00105         else:
            dict.__setitem__(self, key, value)

Member Data Documentation

Definition at line 100 of file Parser.py.


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