#NEWLINE# def _convert_tuple( self , key , is_setter = False ) : #NEWLINE# #INDENT# keyidx = [ ] #NEWLINE# if ( self . axis is not None ) : #NEWLINE# #INDENT# axis = self . obj . _get_axis_number ( self . axis ) #NEWLINE# for i in range ( self . ndim ) : #NEWLINE# #INDENT# if ( i == axis ) : #NEWLINE# #INDENT# keyidx . append ( self . _convert_to_indexer ( key , axis = axis , is_setter = is_setter ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# keyidx . append ( slice ( None ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for ( i , k ) in enumerate ( key ) : #NEWLINE# #INDENT# idx = self . _convert_to_indexer ( k , axis = i , is_setter = is_setter ) #NEWLINE# keyidx . append ( idx ) #NEWLINE# #UNINDENT# #UNINDENT# return tuple ( keyidx )