#NEWLINE# def next_id( self , name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _COUNTERS [ name ] . next ( ) #NEWLINE# return str ( self . _COUNTERS [ name ] ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# ctr = self . _COUNTERS [ name ] = _Counter ( name ) #NEWLINE# return str ( ctr )