module documentation

An OrderedSet is a custom MutableSet that remembers its order, so that every entry has an index that can be looked up. Based on a recipe originally posted to ActiveState Recipes by Raymond Hettiger, and released under the MIT license.

Class OrderedSet An OrderedSet is a custom MutableSet that remembers its order, so that every entry has an index that can be looked up.
Function is_iterable Are we being asked to look up a list of things, instead of a single thing? We check for the `__iter__` attribute so that this can cover types that don't have to be known by this module, such as NumPy arrays.
Constant SLICE_ALL Undocumented
Variable __version__ Undocumented
def is_iterable(obj): (source)

Are we being asked to look up a list of things, instead of a single thing? We check for the `__iter__` attribute so that this can cover types that don't have to be known by this module, such as NumPy arrays. Strings, however, should be considered as atomic values to look up, not iterables. The same goes for tuples, since they are immutable and therefore valid entries. We don't need to check for the Python 2 `unicode` type, because it doesn't have an `__iter__` attribute anyway.

SLICE_ALL = (source)

Undocumented

Value
slice(None)
__version__: str = (source)

Undocumented