#NEWLINE# def store_kwargs( self , kwargs ) : #NEWLINE# #INDENT# ' Merges the given keyword argument, with traits default and\n            store the resulting dictionary in self.kwargs.' #NEWLINE# kwargs = kwargs . copy ( ) #NEWLINE# all_traits = self . get_all_traits ( ) #NEWLINE# if ( not set ( kwargs . keys ( ) ) . issubset ( list ( all_traits . keys ( ) ) ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Invalid keyword arguments : %s' % ', ' . join ( ( str ( k ) for k in set ( kwargs . keys ( ) ) . difference ( list ( all_traits . keys ( ) ) ) ) ) ) ) #NEWLINE# #UNINDENT# traits = self . get ( self . class_trait_names ( ) ) #NEWLINE# [ traits . pop ( key ) for key in list ( traits . keys ( ) ) if ( key [ 0 ] == '_' ) ] #NEWLINE# traits . update ( kwargs ) #NEWLINE# self . kwargs = traits