Logo Search packages:      
Sourcecode: zope-docfindereverywhere version File versions  Download package

def DocFinderEverywhere::DocFinder::analyse::ClassDoc::__getitem__ (   self,
  k 
)

allow access by both integer as well as attr names.

Definition at line 229 of file analyse.py.

00229                          :
    '''allow access by both integer as well as attr names.'''
    if type(k) is IntType: return self._attrs[k]
    if self._AttrDict is None:
      cd= self._AttrDict= {}
      for c in self._attrs: cd[c._name]= c
    return self._AttrDict[k]

  
  def __len__(self):


Generated by  Doxygen 1.6.0   Back to index