#NEWLINE# def p_arglist6( p ) : #NEWLINE# #INDENT# ' arglist : arglist_list argument ' #NEWLINE# args = [ ] #NEWLINE# kws = [ ] #NEWLINE# arglist = p [ 1 ] #NEWLINE# arg = p [ 2 ] #NEWLINE# arg . lineno = arglist [ ( - 1 ) ] . lineno #NEWLINE# items = ( arglist + [ arg ] ) #NEWLINE# _validate_arglist_list ( items , p . lexer . lexer ) #NEWLINE# for arg in items : #NEWLINE# #INDENT# if isinstance ( arg , ast . keyword ) : #NEWLINE# #INDENT# kws . append ( arg ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# args . append ( arg ) #NEWLINE# #UNINDENT# #UNINDENT# p [ 0 ] = Arguments ( args = args , keywords = kws )