Functional Attributes

functools.partial.func

Underlying callable retained by a partial object.

Formal Syntax & Structure

python syntaxpython
partial_object.func

Return Value

callable

The callable result described above.

Working Example

Example Snippetpython
import functoolsf=functools.partial(pow,5,exp=2)print(f.func is pow)
Python Reference