#NEWLINE# def get_string_index( self , value ) : #NEWLINE# #INDENT# assert isinstance ( value , str ) , 'Value {0!r} is not string' . format ( value ) #NEWLINE# return ( self . cpool . string . index ( value ) + 1 )