March 2003
Intermediate to advanced
656 pages
39h 30m
English
apply
apply(func,args=( ),keywords={ })
Calls a function (or other callable object) and returns its result.
apply’s behavior is exactly the
same as
func
(*
args
,**
keywords
).
The * and ** forms are covered
in Section 4.10 in Chapter 4. In almost all cases of practical interest,
you can just use the syntax
func
(*
args
,**
keywords
)
and avoid apply.