---
title: "ordered-set 4.0.1 Breaking Changes on PyPI | Since.dev"
description: "What each ordered-set release removed, renamed or changed: 25 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/ordered-set
last_updated: 2026-12-04
---

# ordered-set breaking changes

ordered-set 4.0.1 (April 29, 2020) is its newest release with breaking changes, 24 of them. The first: Removed ordered_set.is_iterable. Every breaking API change we have recorded in ordered-set on PyPI: 25 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.1.0`, released January 26, 2022. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.0.0](#v-3-0-0) to [4.0.1](#v-4-0-1): 24 breaking changes in 1 version.

## ordered-set 4.0.1 breaking changes

ordered-set 4.0.1, released April 29, 2020: 24 breaking changes.

- **Removed** `ordered_set.is_iterable`  

ordered_set.is_iterable was removed in ordered-set 4.0.1 [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet`  

Was class OrderedSet(MutableSet, Sequence); now class OrderedSet(MutableSet\[T\], Sequence\[T\]). [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__and__`  

Was def \_\_and\_\_(self, other: Sequence\[T\]) -> OrderedSet\[T\]; now def \_\_and\_\_(self, other: SetLike\[T\]) -> OrderedSet\[T\]. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__contains__`  

Was def \_\_contains\_\_(self, key: T) -> bool; now def \_\_contains\_\_(self, key: Any) -> bool. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__eq__`  

Was def \_\_eq\_\_(self, other: Sequence\[T\]) -> bool; now def \_\_eq\_\_(self, other: Any) -> bool. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__getitem__`  

Was def \_\_getitem\_\_(self, index: Union\[int, slice, Sequence\[int\]\]) -> OrderedSet\[T\]; now def \_\_getitem\_\_(self, index: int) -> T. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__getstate__`  

Was def \_\_getstate\_\_(self) -> Union\[Tuple\[None\], List\[T\]\]; now def \_\_getstate\_\_(self). [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__init__`  

Was def \_\_init\_\_(self, iterable: Iterable\[T\] = None) -> None; now def \_\_init\_\_(self, iterable: Optional\[Iterable\[T\]\] = None). [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__len__`  

Was def \_\_len\_\_(self) -> int; now def \_\_len\_\_(self). [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__reversed__`  

Was def \_\_reversed\_\_(self) -> List\[T\]; now def \_\_reversed\_\_(self) -> Iterator\[T\]. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.__setstate__`  

Was def \_\_setstate\_\_(self, state: Union\[Tuple\[None\], List\[T\]\]) -> None; now def \_\_setstate\_\_(self, state). [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.difference`  

Was def difference(self, \*sets: Sequence\[T\]) -> OrderedSet\[T\]; now def difference(self, \*sets: SetLike\[T\]) -> OrderedSet\[T\]. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.difference_update`  

Was def difference_update(self, \*sets: Sequence\[T\]) -> None; now def difference_update(self, \*sets: SetLike\[T\]) -> None. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.index`  

Was def index(self, key: Union\[T, Sequence\[T\]\]) -> int; now def index(self, key: Sequence\[T\]) -> List\[int\]. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.intersection`  

Was def intersection(self, \*sets: Sequence\[T\]) -> OrderedSet\[T\]; now def intersection(self, \*sets: SetLike\[T\]) -> OrderedSet\[T\]. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.intersection_update`  

Was def intersection_update(self, other: Sequence\[T\]) -> None; now def intersection_update(self, other: SetLike\[T\]) -> None. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.issubset`  

Was def issubset(self, other: Union\[Set\[T\], Sequence\[T\]\]) -> bool; now def issubset(self, other: SetLike\[T\]) -> bool. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.issuperset`  

Was def issuperset(self, other: Union\[Set\[T\], Sequence\[T\]\]) -> bool; now def issuperset(self, other: SetLike\[T\]) -> bool. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.items`  

Was items: List\[T\]; now items. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.map`  

Was map: Dict\[T, int\]; now map. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.symmetric_difference`  

Was def symmetric_difference(self, other: Sequence\[T\]) -> OrderedSet\[T\]; now def symmetric_difference(self, other: SetLike\[T\]) -> OrderedSet\[T\]. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.symmetric_difference_update`  

Was def symmetric_difference_update(self, other: Sequence\[T\]) -> None; now def symmetric_difference_update(self, other: SetLike\[T\]) -> None. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.union`  

Was def union(self, \*sets: Sequence\[T\]) -> OrderedSet\[T\]; now def union(self, \*sets: SetLike\[T\]) -> OrderedSet\[T\]. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)
- **Signature changed** `ordered_set.OrderedSet.update`  

Was def update(self, sequence: Sequence\[T\]) -> int; now def update(self, sequence: SetLike\[T\]) -> int. [pypi.org](https://pypi.org/project/ordered-set/4.0.1/)

## ordered-set 3.0.0 breaking changes

ordered-set 3.0.0, released June 16, 2018: 1 breaking change.

- **Signature changed** `ordered_set.OrderedSet`  

Was class OrderedSet(collections.MutableSet); now class OrderedSet(collections.MutableSet, collections.Sequence). [pypi.org](https://pypi.org/project/ordered-set/3.0.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
