ordered-set icon indicating copy to clipboard operation
ordered-set copied to clipboard

A mutable set that remembers the order of its entries. One of Python's missing data types.

Results 19 ordered-set issues
Sort by recently updated
recently updated
newest added

I'm unable to use `OrderedSet.index(...)` function with `frozenset`s as values. It throws an error when the key is a frozenset. Code to recreate the error: ```py os = OrderedSet([frozenset([1, 2])])...

When overriding the `.add()` method in a subclass, I think the desired behavior of `obj.append()` would be to call the `.add()` method of the subclass, right? However, the append method...

The containers from typing are covariant in their args. It'd make sense to make OrderedSet covariant too. ``` from ordered_set import OrderedSet class A: pass class B(A): pass def my_fun(things:...

Hi @rspeer Thanks for this nice library! I made a very large refactor, added another implementation, many features, tests and compatibility with other implementations and some more. The new version...

Hello, I am interested to know if the maintainers of this package would have interest in including this functionality in the python standard library. It seems natural for `OrderedSet` to...

Since `OrderedSet` supports indexing, it's natural to assume that assignments and `del` would work as well, but they don't: ```py >>> s = OrderedSet(['foo']) >>> s[0] 'foo' >>> s[0] =...

Closes https://github.com/rspeer/ordered-set/issues/91 - Major refactor - Added a StableSet implementation, as a base class for OrderedSet. - Added Many functions to OrderedSet, to be more complete and more compatible with...

One of the previous commits removed the closing parenthesis inside one of f-strings. I fixed it.

Resolves [Issue 83](https://github.com/rspeer/ordered-set/issues/83)

Current: ```python def update(self, sequence: Union[Sequence[T], Set[T]]) -> int: ``` Proposed: ```python def update(self, sequence: Iterable[T]) -> int: ``` The reason is that I push in a generator, which works...