def allitems(attr=None, doc=''):
 def getter(self):
  if (attr is None):
   return self._items
  return [getattr(frag, attr) for frag in self._items]
 return property(fget=getter, doc=doc)

def allitems ( attr = None , doc = '' ) : def getter ( self ) : if ( attr is None ) : return self . _items return [ getattr ( frag , attr ) for frag in self . _items ] return property ( fget = getter , doc = doc )
returns a property that fetches the given attributes from all items in a searchio container object .