#NEWLINE# def __getitem__( self , value ) : #NEWLINE# #INDENT# if isinstance ( self , slice ) : #NEWLINE# #INDENT# if ( ( value . step is not None ) and ( value . step != 1 ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Cannot use a step other than 1' ) #NEWLINE# #UNINDENT# return self . start ( ( self . _args [ 'start' ] + value . start ) ) . rows ( ( value . stop - value . start ) ) #NEWLINE# #UNINDENT# if isinstance ( value , six . string_types ) : #NEWLINE# #INDENT# return self [ self . index ( value ) ] #NEWLINE# #UNINDENT# row_value = self . data [ 'rows' ] [ value ] #NEWLINE# if ( row_value is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return SearchRow ( row_value , self . api )