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

# gevent breaking changes

gevent 26.4.0 (April 8, 2026) is its newest release with breaking changes, 4 of them. The first: gevent 26.4.0 drops support for Python 3.9. Every breaking API change we have recorded in gevent on PyPI: 34 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `26.9.0`, released September 16, 2026. [Source repository](https://github.com/gevent/gevent)

Its 26.4.0 release drops [Python 3.9](https://since.dev/calendar/python/3.9.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [25.4.1](#v-25-4-1) to [26.4.0](#v-26-4-0): 4 breaking changes in 1 version.
- From [22.8.0](#v-22-8-0) to [26.4.0](#v-26-4-0): 28 breaking changes in 4 versions.

## gevent 26.4.0 breaking changes

gevent 26.4.0, released April 8, 2026: 4 breaking changes.

- **Removed**  

Python 3.9 is no longer supported. Users on Python 3.9 must upgrade their interpreter to keep using this release. [github.com](https://github.com/gevent/gevent/blob/26.4.0/CHANGES.rst)
- **Signature changed** `gevent.testing.six.exec_`  

Was def exec\_(code, globs=None, locs=None); now exec\_. [pypi.org](https://pypi.org/project/gevent/26.4.0/)
- **Signature changed** `gevent.testing.TestCase.assertStartsWith`  

Was def assertStartsWith(self, it, has_prefix); now def assertStartsWith(self, s, prefix, msg=None). [pypi.org](https://pypi.org/project/gevent/26.4.0/)
- **Signature changed** `gevent.testing.testcase.TestCase.assertStartsWith`  

Was def assertStartsWith(self, it, has_prefix); now def assertStartsWith(self, s, prefix, msg=None). [pypi.org](https://pypi.org/project/gevent/26.4.0/)

## gevent 25.4.1 breaking changes

gevent 25.4.1, released April 17, 2025: 7 breaking changes.

- **Behavior changed** `patch_all`  

Monkey-patching the queue module, which patch_all does by default, now also patches Queue, PriorityQueue and LifoQueue, so code relying on the previous unpatched behavior may change. [github.com](https://github.com/gevent/gevent/blob/25.4.1/CHANGES.rst)
- **Signature changed** `gevent.tests.known_failures.Definitions`  

Was class Definitions(DefinitionsBase); now class Definitions. [pypi.org](https://pypi.org/project/gevent/25.4.1/)
- **Signature changed** `gevent.tests.test__greenlet.Queue`  

The Queue class was renamed to SimpleQueue. Code that imports or uses Queue for the old simple queue must switch to SimpleQueue. [pypi.org](https://pypi.org/project/gevent/25.4.1/)
- **Signature changed** `gevent.tests.test__greenlet.Queue.__init__`  

Was def \_\_init\_\_(self, maxsize=None, items=(), \_warn_depth=2); now def \_\_init\_\_(self, maxsize=None, items=(), unfinished_tasks=None). [pypi.org](https://pypi.org/project/gevent/25.4.1/)
- **Signature changed** `gevent.tests.test__queue.TestChannel`  

Was class TestChannel(TestCase); now class TestChannel(UsesOnlyOneItemMixin, TestCase). [pypi.org](https://pypi.org/project/gevent/25.4.1/)
- **Signature changed** `gevent.tests.test__queue.TestJoinableQueue`  

Was class TestJoinableQueue(TestCase); now class TestJoinableQueue(TestQueue). [pypi.org](https://pypi.org/project/gevent/25.4.1/)
- **Signature changed** `gevent.tests.test__queue.TestQueue`  

Was class TestQueue(TestCase); now class TestQueue(UsesOnlyOneItemMixin, TestCase). [pypi.org](https://pypi.org/project/gevent/25.4.1/)

## gevent 24.2.1 breaking changes

gevent 24.2.1, released February 14, 2024: 3 breaking changes.

- **Removed**  

Very old versions of CFFI are no longer supported. Upgrade CFFI if you are using an old release. [github.com](https://github.com/gevent/gevent/blob/24.2.1/CHANGES.rst)
- **Behavior changed** `gevent.threading._DummyThread`  

On Python 3.11.8, 3.12.2 and later patch releases, the \_\_class\_\_ of a gevent.threading.\_DummyThread object can no longer be changed. Code that relies on this must change. [github.com](https://github.com/gevent/gevent/blob/24.2.1/CHANGES.rst)
- **Signature changed** `gevent.testing.testrunner.Runner.__init__`  

Was def \_\_init\_\_(self, tests, configured_failing_tests=(), failfast=False, quiet=False, configured_run_alone_tests=(), worker_count=DEFAULT_NWORKERS, second_chance=False); now def \_\_init\_\_(self, tests, \*, allowed_return_codes=()... [pypi.org](https://pypi.org/project/gevent/24.2.1/)

## gevent 23.7.0 breaking changes

gevent 23.7.0, released July 11, 2023: 14 breaking changes.

- **Removed**  

Support for obsolete Python versions prior to 3.8 has been removed. Users on those versions must upgrade Python before using this release. [github.com](https://github.com/gevent/gevent/blob/23.7.0/CHANGES.rst)
- **Removed** `pkg_resources`  

Plugin entry points are now found with importlib.metadata instead of pkg_resources. Code relying on pkg_resources for gevent plugins must adapt. [github.com](https://github.com/gevent/gevent/blob/23.7.0/CHANGES.rst)
- **Removed** `setup_requires`  

The setup_requires keyword is no longer included in setup.py. Installation with a pyproject.toml-aware tool is recommended. [github.com](https://github.com/gevent/gevent/blob/23.7.0/CHANGES.rst)
- **Behavior changed** `gevent.threadpool.FileObjectThread.readinto`  

readinto on FileObjectThread is now cooperative, which changes how it behaves under gevent scheduling. [github.com](https://github.com/gevent/gevent/blob/23.7.0/CHANGES.rst)
- **Behavior changed** `sys.unraisablehook`  

When a callback raises and handling it in the hub also raises, the error is passed to sys.unraisablehook rather than only printed. Code relying on the printed output may see different behavior. [github.com](https://github.com/gevent/gevent/blob/23.7.0/CHANGES.rst)
- **Signature changed** `gevent.get_hub`  

Was def get_hub(\*args, \*\*kwargs); now def get_hub(). [pypi.org](https://pypi.org/project/gevent/23.7.0/)
- **Signature changed** `gevent.getswitchinterval`  

Was def getswitchinterval(); now getswitchinterval. [pypi.org](https://pypi.org/project/gevent/23.7.0/)
- **Signature changed** `gevent.setswitchinterval`  

Was def setswitchinterval(interval); now setswitchinterval. [pypi.org](https://pypi.org/project/gevent/23.7.0/)
- **Signature changed** `gevent.socket.create_connection`  

Was def create_connection(address, timeout=\_GLOBAL_DEFAULT_TIMEOUT, source_address=None, \*\*kwargs); now def create_connection(address, timeout=\_GLOBAL_DEFAULT_TIMEOUT, source_address=None, \*, all_errors=False). [pypi.org](https://pypi.org/project/gevent/23.7.0/)
- **Signature changed** `gevent.testing.testcase.get_clock_info`  

Was def get_clock_info(\_); now get_clock_info. [pypi.org](https://pypi.org/project/gevent/23.7.0/)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## gevent 22.8.0 breaking changes

gevent 22.8.0, released October 8, 2022: 6 breaking changes.

- **Signature changed** `gevent.socket.create_connection`  

Was def create_connection(address, timeout=\_GLOBAL_DEFAULT_TIMEOUT, source_address=None); now def create_connection(address, timeout=\_GLOBAL_DEFAULT_TIMEOUT, source_address=None, \*\*kwargs). [pypi.org](https://pypi.org/project/gevent/22.8.0/)
- **Signature changed** `gevent.tests.known_failures.Multi.flaky`  

Was def flaky(self, reason='', when=True); now def flaky(self, reason='', when=True, ignore_coverage=NEVER, run_alone=NEVER). [pypi.org](https://pypi.org/project/gevent/22.8.0/)
- **Signature changed** `gevent.tests.test__example_echoserver.create_connection`  

Was def create_connection(address, timeout=\_GLOBAL_DEFAULT_TIMEOUT, source_address=None); now def create_connection(address, timeout=\_GLOBAL_DEFAULT_TIMEOUT, source_address=None, \*\*kwargs). [pypi.org](https://pypi.org/project/gevent/22.8.0/)
- **Signature changed** `gevent.tests.test__subprocess_poll.Popen.__init__`  

Was def \_\_init\_\_(self, args, bufsize=-1 if PY3 else 0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=\_PLATFORM_DEFAULT_CLOSE_FDS, shell=False, cwd=None, env=None, universal_newlines=None... [pypi.org](https://pypi.org/project/gevent/22.8.0/)
- **Signature changed** `gevent.tests.test__threadpool.ThreadPool.__init__`  

Was def \_\_init\_\_(self, maxsize, hub=None); now def \_\_init\_\_(self, maxsize, hub=None, idle_task_timeout=-1). [pypi.org](https://pypi.org/project/gevent/22.8.0/)
- **Signature changed** `gevent.threadpool.ThreadPool.__init__`  

Was def \_\_init\_\_(self, maxsize, hub=None); now def \_\_init\_\_(self, maxsize, hub=None, idle_task_timeout=-1). [pypi.org](https://pypi.org/project/gevent/22.8.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.
