#NEWLINE# def __init__( self , name = None ) : #NEWLINE# #INDENT# if ( self . regex is None ) : #NEWLINE# #INDENT# message = 'A regex must be defined for {}' #NEWLINE# raise NotImplementedError ( message . format ( self . __class__ . __name__ ) ) #NEWLINE# #UNINDENT# if ( name is None ) : #NEWLINE# #INDENT# name = self . __class__ . __name__ . lower ( ) #NEWLINE# #UNINDENT# self . name = name #NEWLINE# super ( Particle , self ) . __init__ ( self . regex , self )