#NEWLINE# def inspect_func_args( fn ) : #NEWLINE# #INDENT# co = fn . __code__ #NEWLINE# nargs = co . co_argcount #NEWLINE# names = co . co_varnames #NEWLINE# args = list ( names [ : nargs ] ) #NEWLINE# has_kw = bool ( ( co . co_flags & CO_VARKEYWORDS ) ) #NEWLINE# return ( names , has_kw )