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

def DocFinderEverywhere::analyse::ClassDoc::__getitem__ (   self,
  k 
)
allow access by both integer as well as attr names.

Definition at line 231 of file analyse.py.

                         :
    '''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]

  

Generated by  Doxygen 1.6.0   Back to index