The doctest was printing Sets, but that's unreliable because set
elements get displayed in undefined dict order. Use a Set subclass instead (which arranges to sort the elements for display).
Showing
Please register or sign in to comment