I would prefer not to have this convenience; it saves only two characters and comes at the cost of requiring that the value must be a list, not any other type of iterable.

You might actually consider converting the value of ``when`` (if not ``None``) to a set at this point, since it is used entirely for containment checks.