jinja2.sandbox.Set.symmetric_difference

Set.symmetric_difference(other)

Return the symmetric difference of two sets as a new set.

(I.e. all elements that are in exactly one of the sets.)