Decorators and function wrapping

What value reaches its caller?

Examples

Worked example

Input
A wrapper calls original(), which returns 8, but omits return.
Expected output
None

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

The wrapper completes without returning a value, so Python supplies None.

Back to the lesson