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

# pymemcache breaking changes

pymemcache 4.0.0 (October 17, 2022) is its newest release with breaking changes, 25 of them. The first: pymemcache 4.0.0 drops support for Python 2.7, 3.4 and 3.5. Every breaking API change we have recorded in pymemcache on PyPI: 71 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released October 17, 2022. [Source repository](https://github.com/pinterest/pymemcache)

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

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 25 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [4.0.0](#v-4-0-0): 61 breaking changes in 2 versions.

## pymemcache 4.0.0 breaking changes

pymemcache 4.0.0, released October 17, 2022: 25 breaking changes.

- **Removed**  

The release no longer supports Python 2.7, 3.4 and 3.5, so those runtimes must be upgraded before using this version. [github.com](https://github.com/pinterest/pymemcache/releases/tag/v4.0.0)
- **Removed**  

The release no longer supports Python 3.6, so that runtime must be upgraded before using this version. [github.com](https://github.com/pinterest/pymemcache/releases/tag/v4.0.0)
- **Removed** `pymemcache.serde.long_type`  

pymemcache.serde.long_type was removed in pymemcache 4.0.0 [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Removed** `pymemcache.test.test_client_hash.ClientTestMixin.test_set_future`  

ClientTestMixin.test_set_future was removed in pymemcache 4.0.0 [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Removed** `pymemcache.test.test_client.ClientTestMixin.test_set_future`  

ClientTestMixin.test_set_future was removed in pymemcache 4.0.0 [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Removed** `pymemcache.test.test_integration.test_get_set_newbytes`  

pymemcache.test.test_integration.test_get_set_newbytes was removed in pymemcache 4.0.0 [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Removed** `pymemcache.test.test_serde.FLAG_LONG`  

pymemcache.test.test_serde.FLAG_LONG was removed in pymemcache 4.0.0 [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Removed** `pymemcache.test.test_serde.TestSerde.check`  

TestSerde.check was removed in pymemcache 4.0.0 [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Removed** `pymemcache.test.test_serde.TestSerde.test_long`  

TestSerde.test_long was removed in pymemcache 4.0.0 [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.client.base.Client.check_key`  

Was def check_key(self, key); now def check_key(self, key: Key, key_prefix: bytes) -> bytes. [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.Client.check_key`  

Was def check_key(self, key); now def check_key(self, key: Key, key_prefix: bytes) -> bytes. [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.pool.ObjectPool`  

Was class ObjectPool(object); now class ObjectPool(Generic\[T\]). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_client.test_check_key_helper_failing_conditions`  

Was def test_check_key_helper_failing_conditions(key, allow_unicode_keys, key_prefix, ex_exception, ex_excinfo, ignore_py27); now def test_check_key_helper_failing_conditions(key, allow_unicode_keys, key_prefix, ex_exception, ex_excinfo). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_add_replace`  

Was def test_add_replace(client_class, host, port, socket_module); now def test_add_replace(client_class, host, port, serde, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_append_prepend`  

Was def test_append_prepend(client_class, host, port, socket_module); now def test_append_prepend(client_class, host, port, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_cas`  

Was def test_cas(client_class, host, port, socket_module); now def test_cas(client_class, host, port, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_delete`  

Was def test_delete(client_class, host, port, socket_module); now def test_delete(client_class, host, port, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_get_set`  

Was def test_get_set(client_class, host, port, socket_module); now def test_get_set(client_class, host, port, serde, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_get_set_unicode_key`  

Was def test_get_set_unicode_key(client_class, host, port, socket_module); now def test_get_set_unicode_key(client_class, host, port, serde, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_gets`  

Was def test_gets(client_class, host, port, socket_module); now def test_gets(client_class, host, port, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_incr_decr`  

Was def test_incr_decr(client_class, host, port, socket_module); now def test_incr_decr(client_class, host, port, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_misc`  

Was def test_misc(client_class, host, port, socket_module); now def test_misc(client_class, host, port, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_serde_serialization`  

Was def test_serde_serialization(client_class, host, port, socket_module); now def test_serde_serialization(client_class, host, port, socket_module, serde). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_integration.test_touch`  

Was def test_touch(client_class, host, port, socket_module); now def test_touch(client_class, host, port, socket_module, key_prefix). [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)
- **Signature changed** `pymemcache.test.test_serde.TestSerde`  

Was class TestSerde(TestCase); now class TestSerde. [pypi.org](https://pypi.org/project/pymemcache/4.0.0/)

## pymemcache 3.0.0 breaking changes

pymemcache 3.0.0, released January 2, 2020: 36 breaking changes.

- **Removed** `pymemcache.client.base.Client.deserializer`  

Client.deserializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.client.base.Client.serializer`  

Client.serializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.client.base.PooledClient.deserializer`  

PooledClient.deserializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.client.base.PooledClient.serializer`  

PooledClient.serializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.Client.deserializer`  

Client.deserializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.Client.serializer`  

Client.serializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.PooledClient.deserializer`  

PooledClient.deserializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.PooledClient.serializer`  

PooledClient.serializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.test.test_client.MockMemcacheClient.deserializer`  

MockMemcacheClient.deserializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)
- **Removed** `pymemcache.test.test_client.MockMemcacheClient.serializer`  

MockMemcacheClient.serializer was removed in pymemcache 3.0.0 [pypi.org](https://pypi.org/project/pymemcache/3.0.0/)

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

## pymemcache 2.0.0 breaking changes

pymemcache 2.0.0, released September 14, 2018: 10 breaking changes.

- **Removed**  

Python 3.3 is no longer supported. Users on Python 3.3 must stay on an earlier release. [github.com](https://github.com/pinterest/pymemcache/releases/tag/v2.0.0)
- **Removed** `pymemcache.serde.PICKLE_VERSION`  

pymemcache.serde.PICKLE_VERSION was removed in pymemcache 2.0.0 [pypi.org](https://pypi.org/project/pymemcache/2.0.0/)
- **Removed** `pymemcache.test.test_benchmark.run_client_test`  

pymemcache.test.test_benchmark.run_client_test was removed in pymemcache 2.0.0 [pypi.org](https://pypi.org/project/pymemcache/2.0.0/)
- **Removed** `pymemcache.test.test_benchmark.test_memcache`  

pymemcache.test.test_benchmark.test_memcache was removed in pymemcache 2.0.0 [pypi.org](https://pypi.org/project/pymemcache/2.0.0/)
- **Removed** `pymemcache.test.test_benchmark.test_pylibmc`  

pymemcache.test.test_benchmark.test_pylibmc was removed in pymemcache 2.0.0 [pypi.org](https://pypi.org/project/pymemcache/2.0.0/)
- **Removed** `pymemcache.test.test_benchmark.test_pymemcache`  

pymemcache.test.test_benchmark.test_pymemcache was removed in pymemcache 2.0.0 [pypi.org](https://pypi.org/project/pymemcache/2.0.0/)
- **Behavior changed** `Client.set_many`  

The return value of set_many changed in this release. Code that reads the value returned by set_many must be checked and updated. [github.com](https://github.com/pinterest/pymemcache/releases/tag/v2.0.0)
- **Behavior changed** `Client.set_multi`  

The return value of set_multi changed in this release. Code that reads the value returned by set_multi must be checked and updated. [github.com](https://github.com/pinterest/pymemcache/releases/tag/v2.0.0)
- **Signature changed** `pymemcache.serde.python_memcache_serializer`  

Was def python_memcache_serializer(key, value); now python_memcache_serializer. [pypi.org](https://pypi.org/project/pymemcache/2.0.0/)
- **Signature changed** `pymemcache.test.test_integration.python_memcache_serializer`  

Was def python_memcache_serializer(key, value); now python_memcache_serializer. [pypi.org](https://pypi.org/project/pymemcache/2.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.
