A Practical Python Upgrade Plan for Small Engineering Teams

A Practical Python Upgrade Plan for Small Engineering Teams

Your Python service may be working perfectly—and still be getting harder to maintain because nobody is sure which upgrade will break it. The useful lesson in a recent Talk Python episode featuring Simon Willison is not “always use the newest version”. Its summary highlights his post about why Python 3.15 means he can start using Python 3.11. That is a reminder to check what a newer release changes for your upgrade options, rather than treating each version as an isolated decision.

The report does not explain the technical reasons for that specific version relationship, or establish that Python 3.11 is right for your project. The steps below are a practical recommendation for teams planning their own upgrade.

Choose a target you can support

For a small team, the best target is not automatically the newest available version. It is a version your application and its dependencies can support, and that your team can test and maintain.

Start by recording the Python version used in production, development and automated tests. Check where those versions are defined, then list the dependencies that matter to the service: for example, its web framework, database driver and scheduled-job libraries. If you cannot tell which version is actually deployed, resolve that before changing anything.

Upgrade in a small, reversible step

  1. Pick one service. Choose a low-impact application with a reliable way to test its main workflows. Avoid changing several services at once.
  2. Check compatibility. Review the supported Python versions for your direct dependencies and note anything that needs an update. Do not assume that a dependency will support your target just because the application currently runs.
  3. Make the version change in a separate branch. Keep the change focused: update the runtime setting and only the dependencies needed to make that target work.
  4. Run the checks that reflect real use. Include the automated tests you already trust and manually verify important paths such as a customer request, a database write or a scheduled task.
  5. Deploy with a way back. Use your normal release process, watch for errors and keep the previous working version available until the upgraded service has been checked.

Know when to proceed—and when to wait

Act now if your team owns a Python service, can identify its deployed version and has tests or a safe staging environment. Use the upgrade to make the runtime explicit and find out which dependencies are holding you back, even if you do not change versions immediately.

Wait on the production upgrade if you cannot reproduce the current environment, have no dependable rollback, or rely on a critical dependency whose compatibility you have not checked. First improve that missing part of the process. Upgrading without it can turn an ordinary compatibility issue into an outage or a difficult-to-diagnose release.

A staged test can reduce uncertainty, but it cannot prove that every production workload will behave identically. Tests may miss uncommon inputs, background tasks or environment differences. Keep the first change narrow and treat monitoring after release as part of the upgrade, not an optional extra.

Make the next upgrade easier

Once the service is stable, write down the chosen Python version, where it is configured, which checks you ran and any dependency that blocked progress. That short record gives the next person a starting point instead of a fresh investigation.

Takeaway: A Python upgrade is a compatibility exercise, not a race to the latest number. Pick one service, verify its dependencies and make the first change easy to reverse. Your next action: find where your production Python version is set.

// Share this post

Newsletter

New articles, in your inbox

One email when we publish. No digests and no product pitches. Unsubscribe any time. Privacy policy