#NEWLINE# def execute( callable , * args , **kw ) : #NEWLINE# #INDENT# '\n    Create a L{Deferred} from a callable and arguments.\n\n    Call the given function with the given arguments.  Return a L{Deferred}\n    which has been fired with its callback as the result of that invocation\n    or its C{errback} with a L{Failure} for the exception thrown.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# result = callable ( * args , ** kw ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return fail ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return succeed ( result )