#NEWLINE# def _assertValidName( self , name ) : #NEWLINE# #INDENT# if ( not isinstance ( name , basestring ) ) : #NEWLINE# #INDENT# raise TypeError ( ( '[%s] "%s" (%s) not allowed as key.' % ( self . __class__ . __name__ , type ( name ) . __name__ , name ) ) ) #NEWLINE# #UNINDENT# if ( ( name in self . _RESERVEDNAMES ) or name . startswith ( '_' ) ) : #NEWLINE# #INDENT# raise ValueError ( ( '[%s] "%s" (%s) not allowed as key.' % ( self . __class__ . __name__ , type ( name ) . __name__ , name ) ) )