#NEWLINE# def __new_stage2__( cls , name , **assumptions ) : #NEWLINE# #INDENT# if ( not isinstance ( name , string_types ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'name should be a string, not %s' % repr ( type ( name ) ) ) ) #NEWLINE# #UNINDENT# obj = Expr . __new__ ( cls ) #NEWLINE# obj . name = name #NEWLINE# tmp_asm_copy = assumptions . copy ( ) #NEWLINE# is_commutative = fuzzy_bool ( assumptions . get ( 'commutative' , True ) ) #NEWLINE# assumptions [ 'commutative' ] = cls #NEWLINE# obj . _assumptions = StdFactKB ( assumptions ) #NEWLINE# obj . _assumptions . _generator = tmp_asm_copy #NEWLINE# return obj