$ 0 0 Python recipe 576694 by Raymond Hettinger (ordered, set). Revision 9. Set that remembers original insertion order.