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

def DocFinderTab::analyse::ClassDoc::__getitem__ (   self,
  k 
)

allow access by both integer as well as attr names.

Definition at line 294 of file analyse.py.

00294                          :
    '''allow access by both integer as well as attr names.'''
    if isinstance(k, int): 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].__of__(self)


  def __len__(self):


Generated by  Doxygen 1.6.0   Back to index