#NEWLINE# def p_varargslist18( p ) : #NEWLINE# #INDENT# ' varargslist : fpdef EQUAL test varargslist_list COMMA DOUBLESTAR NAME ' #NEWLINE# ( list_args , list_defaults ) = p [ 4 ] #NEWLINE# if ( len ( list_args ) != len ( list_defaults ) ) : #NEWLINE# #INDENT# msg = 'non-default argument follows default argument.' #NEWLINE# tok = FakeToken ( p . lexer . lexer , p . lineno ( 2 ) ) #NEWLINE# syntax_error ( msg , tok ) #NEWLINE# #UNINDENT# args = ( [ p [ 1 ] ] + tok ) #NEWLINE# defaults = ( [ p [ 3 ] ] + list_defaults ) #NEWLINE# p [ 0 ] = ast . arguments ( args = args , defaults = defaults , vararg = None , kwarg = p [ 7 ] )