Inspect a decorated function

Description

layers() is an alias for decorators(), and strip() for undecorate().

Usage

undecorate(f)

decorators(f)

Arguments

f A function.

Value

undecorate() returns the original, undecorated function (or f itself if it is not decorated). decorators() returns the names of the decorators applied, outermost first.