def arguments(function, extra_arguments=0):
 if (not hasattr(function, '__code__')):
  return ()
 return function.__code__.co_varnames[:(function.__code__.co_argcount + extra_arguments)]

def arguments ( function , extra_arguments = 0 ) : if ( not hasattr ( function , '__code__' ) ) : return ( ) return function . __code__ . co_varnames [ : ( function . __code__ . co_argcount + extra_arguments ) ]
returns the name of all arguments a function takes .