orderedset: An ordered set

Inspiration and code expanded from Raymond Hettinger’s indexable weak ordered set and Stephan Schroevers’ does python have an ordered set stackoverflow.com postings.

class OrderedSet(values=())

Bases: collections.abc.MutableSet

Ordered set.

Supports all of the operations that can happen on a set.

class OrderedWeakrefSet(values=())

Bases: _weakrefset.WeakSet

Ordered set of weak references