#NEWLINE# def p_arglist13( p ) : #NEWLINE# #INDENT# ' arglist : STAR test COMMA arglist_list argument ' #NEWLINE# kwnames = set ( ) #NEWLINE# keywords = ( p [ 4 ] + [ p [ 5 ] ] ) #NEWLINE# for kw in keywords : #NEWLINE# #INDENT# if ( not isinstance ( kw , ast . keyword ) ) : #NEWLINE# #INDENT# msg = 'only named arguments may follow *expression' #NEWLINE# tok = FakeToken ( p . lexer . lexer , p . lineno ( 1 ) ) #NEWLINE# syntax_error ( kwnames , tok ) #NEWLINE# #UNINDENT# if ( kw . arg in kwnames ) : #NEWLINE# #INDENT# msg = 'keyword argument repeated' #NEWLINE# tok = FakeToken ( p . lexer . lexer , kw . lineno ) #NEWLINE# syntax_error ( msg , tok ) #NEWLINE# #UNINDENT# kwnames . add ( kw . arg ) #NEWLINE# #UNINDENT# p [ 0 ] = Arguments ( keywords = keywords , starargs = p [ 2 ] )