Sulba
ReviewSign inAccount
Theme
Editor theme
Light
Dark

Beginner · Python for programmers

Closures and decorators

Port superstruct's factories and refinements: functions that make checks and remember what they were made with, refinements wrapped around a check, and decorators that turn a plain test into a named check and count the failures each check finds.

You build
refine.py, then form.py
Stages
3 Build, 1 Catch, 1 Ship
Time
About 3.5 hours

Loading the workspace…