pygame breaking changes
pygame 2.0.0.dev24 (October 28, 2020) is its newest release with breaking changes, 2 of them. The first: Integer key code constants differ between Pygame 1 and 2. Every breaking API change we have recorded in pygame on PyPI: 9 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.6.1, released September 29, 2024. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 2.0.0.dev2 to 2.0.0.dev24: 8 breaking changes in 6 versions.
pygame 2.0.0.dev24 breaking changes
- Behavior changed
The integer values behind key code constants differ between Pygame 1 and 2, so code that relies on raw key code integers must be checked. github.com - Behavior changed
MOUSEBUTTONUP
A MOUSEBUTTONUP event is now generated when the mouse wheel is used, so handlers for button release may receive extra events. github.com
pygame 2.0.0.dev16 breaking changes
- Behavior changed
RLE flag and RLE drawing behaviour was changed so it matches pygame 1, so surfaces using RLE may now draw differently than in pygame 2 previews. github.com
pygame 2.0.0.dev12 breaking changes
- Renamed
Joystick event field names were renamed in this pre-release, so code reading the old joystick event fields must be updated to the new names. github.com
pygame 2.0.0.dev10 breaking changes
- Behavior changed
Several modules' get_init() functions now always return a bool. Code that relied on an int return value may need to be checked. github.com - Behavior changed
pygame.color.Color
Attempts to delete Color attributes that cannot be deleted are now rejected with an AttributeError. Code that deletes such attributes will now fail. github.com
pygame 2.0.0.dev8 breaking changes
- Behavior changed
pygame.image.load
When the file does not exist, image.load now raises FileNotFoundError instead of the generic pygame.error. Code that catches pygame.error for missing files must catch FileNotFoundError instead. github.com
pygame 2.0.0.dev3 breaking changes
- Default changed
pygame.mixer
The mixer's default buffer size is now a small low-latency 512 bytes and its default audio quality is CD quality. Code that depends on the old defaults may need to pass explicit settings to pygame.mixer.init. github.com
Older versions
1 older version.
Show 1 older version
pygame 2.0.0.dev2 breaking changes
- Configuration changed
Source builds now target SDL2 by default. To compile against SDL 1.2, pass the -sdl1 option to setup.py. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.