#NEWLINE# def __getitem__( self , idx ) : #NEWLINE# #INDENT# "\n        Provides indexed access, (e.g. 'cells[0]').\n        " #NEWLINE# if ( ( idx < 0 ) or ( idx >= len ( self . _tr . tc_lst ) ) ) : #NEWLINE# #INDENT# msg = ( 'cell index [%d] out of range' % idx ) #NEWLINE# raise IndexError ( msg ) #NEWLINE# #UNINDENT# return _Cell ( self . _tr . tc_lst [ idx ] , self )