Rodrigo Girão Serrão: Migrating to Python 3.15

Wait 5 sec.

This practical guide tells you what to pay attention to when migrating to Python 3.15.This short article walks you through the main things to keep in mind when migrating your code to Python 3.15:backwards-compatible features: features released in 3.15 that you can start using because they're backwards compatiblebackwards-incompatible features: features released in 3.15 that you can only start using if your project only targets Python 3.15+features that are now 100% supported: features released in 3.11 that are now available in all supported Python versions15 days of Python 3.15To celebrate the release of Python 3.15, over the next 15 business days I'll be writing about a new 3.15 feature every day.Explained clearly and with examples so you don't have to sift through the changelog.Subscribe to receive this free email series: Enroll for free 🐍🚀 If you want, you can also check the schedule of the upcoming emails.3.15 migration guideWhen a new Python version is released and you're considering of adopting it, you need to think about three disjoint sets of features in the context of your project.The first two are the set of new features that are backwards-compatible with other Python versions and the set of features that are not backwards-compatible.To understand the third set of features that's relevant, take a look at the following screenshot from python.org:Timeline of the lifecycle of Python versionsWith the release of Python 3.15, Python 3.10 officially reached end-of-life and 3.13 entered the security-only stage.This means that Python 3.10 won't be updated anymore and Python 3.13 won't be improved; it'll only receive security updates.If you're working on...