def function_factory(name, args, defaults, flag=0, doc=None): """create and initialize a astng Function node""" func = Function(name, args, defaults, flag, doc, None) del func.code func.body = [] args_compiler_to_ast(func) return func
def function_factory(name, args, defaults, flag=0, doc=None): """create and initialize a astng Function node""" # first argument is now a list of decorators func = Function(Decorators([]), name, args, defaults, flag, doc, None) del func.code func.body = [] args_compiler_to_ast(func) return func