#NEWLINE# def _name_to_index( self , cursor , table_name ) : #NEWLINE# #INDENT# '\n        Returns a dictionary of {field_name: field_index} for the given table.\n        Indexes are 0-based.\n        ' #NEWLINE# return dict ( [ ( d [ 0 ] , i ) for ( i , d ) in enumerate ( self . get_table_description ( cursor , table_name , identity_check = False ) ) ] )