To help in the future to remove and track deprecated features, I made a full list of deprecated features in pygame. This does not include deprecated features in the build system.
If you see any missing deprecated features, tell me I'll add it to the table.
Features
Deprecation Version
More details
pygame.Color.set_length
2.1.3
unpack is possible
depth argument in pygame.display.set_mode
2.4.0
not used and ignored
pygame.display.set_gamma
2.1.4
removed in SDL3
pygame.display.set_gamma_ramp
2.1.4
removed in SDL3
blend in pygame.draw.aaline(s)
2.4.0/2.5.0
joy in joystick events | 2.0.0 | use instance_id instead
pygame.freetype.was_init | ? | use get_init instead
pygame.image.to_string | 2.3.0 | use tobytes instead
pygame.image.from_string | 2.3.0 | use frombytes instead
Behaviour of pygame.Joystick.init
2.0.0
pygame.Joystick.get_id | 2.0.0 | use get_instance_id instead
pygame.math.Vector(2\|3).rotate_ip_rad | 2.1.1 | use rotate_rad_ip instead
pygame.math.Vector3.rotate_(x\|y\|z)_ip_rad | 2.1.1 | use rotate(x\|y\|z)_rad_ip instead
Old pygame.scrap
2.2.0
New API
pygame.(snd\|surf)array.use_arraytype
?
pygame.(snd\|surf)array.get_arraytype(s)
?
pygame.sprite.LayeredDirty.set_timing_treshold | 2.1.1 | use set_timing_threshold instead
Surface argument in pygame.Surface.convert_alpha
2.4.0
pygame.Surface.set_(masks\|shifts)
2.0.0
MMX and SSE in pygame.transform.(get\|set)_smoothscale.backend
2.4.0
pygame.Window.from_display_module | 2.4.0 | use get_surface and flip instead
Hello,
To help in the future to remove and track deprecated features, I made a full list of deprecated features in pygame. This does not include deprecated features in the build system.
If you see any missing deprecated features, tell me I'll add it to the table.
pygame.Color.set_length
depth
argument inpygame.display.set_mode
pygame.display.set_gamma
pygame.display.set_gamma_ramp
blend
inpygame.draw.aaline(s)
joy
in joystick events | 2.0.0 | useinstance_id
insteadpygame.freetype.was_init
| ? | useget_init
insteadpygame.image.to_string
| 2.3.0 | usetobytes
insteadpygame.image.from_string
| 2.3.0 | usefrombytes
insteadpygame.Joystick.init
pygame.Joystick.get_id
| 2.0.0 | useget_instance_id
insteadpygame.math.Vector(2\|3).rotate_ip_rad
| 2.1.1 | userotate_rad_ip
insteadpygame.math.Vector3.rotate_(x\|y\|z)_ip_rad
| 2.1.1 | userotate(x\|y\|z)_rad_ip
insteadpygame.scrap
pygame.(snd\|surf)array.use_arraytype
pygame.(snd\|surf)array.get_arraytype(s)
pygame.sprite.LayeredDirty.set_timing_treshold
| 2.1.1 | useset_timing_threshold
insteadSurface
argument inpygame.Surface.convert_alpha
pygame.Surface.set_(masks\|shifts)
MMX
andSSE
inpygame.transform.(get\|set)_smoothscale.backend
pygame.Window.from_display_module
| 2.4.0 | useget_surface
andflip
instead