def call_with_context ( func , context , * args ) : return make_context_aware ( func , len ( args ) ) ( * args + ( context , ) )
does python allow for missing function args like r
Check if given function has more arguments than given . Call it with context as last argument or without it .
def call_with_context(func, context, *args):
    """
    Check if given function has more arguments than given. Call it with context
    as last argument or without it.
    """
    return make_context_aware(func, len(args))(*args + (context,))