Home / Insights / Architecture and Modernization

Architecture and Modernization

Python 3.10 Is End of Life and Python 3.15 Has Shipped: Which Version to Run in Production and When Free-Threading Pays Off

Python 3.10 received its final release on 1 October 2026, and Python 3.15 followed on 9 October with lazy imports, an upgraded JIT and a stable ABI for free-threaded builds. Teams running Python services now have two decisions to make: which version to standardise on for 2027, and whether running without the GIL is worth it yet. This guide gives a default answer to both, the evidence behind it and a 30-day plan.

TopicsArchitecture and ModernizationWeb and SaaS Development

Key takeaways

  • Python 3.10 reached end of life on 1 October 2026 with 3.10.22 as its final release; AWS Lambda deprecated the python3.10 runtime on 31 October and will block function updates from 31 August 2027.
  • Python has no LTS tier. In November 2026 only 3.14 and 3.15 still receive bug fixes; 3.11, 3.12 and 3.13 receive source-only security fixes.
  • The default target for an existing system is 3.14: a year of fixes behind it and support until October 2030. Use 3.15 for new work shipping in 2027 once hosting and compiled dependencies support it.
  • From 3.15, adopt lazy imports and the Tachyon profiler first. Treat the JIT as experimental: reported gains average 7 to 12% depending on platform, with some benchmarks slower.
  • Free-threading is officially supported but optional. It pays for CPU-bound threaded work, costs about 1 to 8% in single-thread speed plus memory, and silently falls back to the GIL if one extension is not ready.

I look after several Python back ends: API services, scheduled data jobs and the service layer around AI features. October 2026 changed the ground under all of them twice in nine days. Python 3.10 received its final release and left support, and Python 3.15 arrived with the largest set of runtime changes in years. Since then the same two questions have come up in almost every planning call: which version should we be on, and is it time to run without the GIL?

This article is for CTOs, engineering managers and product owners who run Python in production and want a defensible answer to both questions. It covers what changed, how to choose a target version, which 3.15 features are worth adopting first, a decision test for free-threading, what can break, and a 30-day plan. If you need people to carry out the work, our Python developers do this kind of upgrade as part of normal maintenance.

What changed in October 2026

  • Python 3.10 reached end of life. The 3.10.22 release page, dated 1 October 2026, states that it is the final release and that the 3.10 series will receive no further security updates.
  • Python 3.15 was released on 9 October 2026. The What’s New in Python 3.15 document lists the headline changes: lazy imports, frozendict and sentinel built-ins, UTF-8 as the default encoding, unpacking in comprehensions, an upgraded experimental JIT compiler and a stable ABI for free-threaded builds. The documentation is already at 3.15.2.
  • Python 3.13 moved into its security-only phase. Under the policy in the Python Developer’s Guide, a version receives bug fixes and new binaries for two years, then source-only security fixes until five years after release. For 3.13, released in October 2024, the two years are up.

The status table on the Developer’s Guide page now reads as follows. Dates for future milestones are scheduled and can be adjusted by the release manager.

VersionFirst releaseStatus in November 2026End of life
3.104 October 2021End of life; final release 3.10.221 October 2026
3.1124 October 2022Security fixes onlyOctober 2027
3.122 October 2023Security fixes onlyOctober 2028
3.137 October 2024Security fixes onlyOctober 2029
3.147 October 2025Bug fixes and security fixesOctober 2030
3.159 October 2026Bug fixes and security fixesOctober 2031
3.16Scheduled for 6 October 2027In developmentOctober 2032

How many teams does the 3.10 date touch? The most recent published edition of the Python Developers Survey, run by the Python Software Foundation and JetBrains with more than 30,000 responses collected in October and November 2024, found 15% of respondents on 3.10 and a further 6% on 3.9. Only 15% were on 3.13, the newest version at the time. That data is two years old, so the shares will have moved, but it shows the pattern I see in client code: most production Python runs one to three versions behind, and a meaningful minority runs on a version that is close to, or past, its end date.

What end of life means for a Python service

Nothing stops working on the day. A 3.10 service keeps serving requests. What ends is the supply of fixes: when the next vulnerability is found in the interpreter or the standard library, there will be a patch for 3.11 to 3.15 and none for 3.10. In Python the second effect usually arrives faster than the first. Library maintainers drop old interpreters soon after end of life, so within months you can no longer take the current release of a web framework, a database driver or an AI SDK, including its security fixes, without upgrading Python first.

Managed platforms then turn the date into a hard stop. The AWS Lambda runtimes table is a good example of how this works in practice:

Lambda runtimeDeprecation dateWhat follows
python3.1031 October 2026Function creation blocked from 29 July 2027; updates blocked from 31 August 2027
python3.1130 June 2027Creation blocked from 29 July 2027; updates blocked from 31 August 2027
python3.1231 October 2028Supported
python3.13 and python3.1430 June 2029Supported
python3.15Not scheduledPublic preview; AWS says preview runtimes should not be used for production workloads and targets general availability in November 2026

Note the 3.11 row. Its Lambda deprecation date is four months before the upstream end of life, because that runtime is built on Amazon Linux 2. A team that plans only from the python.org calendar will be late. The same principle applies to container base images, platform-as-a-service stacks and CI runners: each has its own date, and the earliest one is the one that binds you.

Action: treat 3.10 as a dated risk with an owner, and add 3.11 to the same plan now. Our guide to managing end-of-life frameworks and runtimes describes the support register we keep so these dates are visible a year ahead.

Which version to run: 3.13, 3.14 or 3.15

Python has no long-term-support label. Every version gets the same five years, so the choice is about where a version sits in its life, not about a tier. Three facts shape the decision this quarter.

CriterionPython 3.13Python 3.14Python 3.15
Upstream phaseSecurity fixes only, source releasesBug fixes, with binaries about every two monthsBug fixes; first weeks of servicing
End of lifeOctober 2029October 2030October 2031
MaturityTwo years in production useThirteen months of fixesReleased 9 October 2026; documentation at 3.15.2
Free-threaded buildExperimentalOfficially supported, optionalSupported, optional; adds a stable ABI for extensions
Managed serverless (AWS Lambda)SupportedSupportedPreview, not for production
Third-party wheelsUniversalBroad; check native packagesCheck every package with compiled code
What you gainLowest-risk landingLongest fully serviced window todayLazy imports, new profiler, upgraded JIT, UTF-8 default

My default recommendation

  • On 3.10 or older: move to 3.14 now. It is the newest version that has had a full year of fixes, it is still in the bug-fix phase, and it gives you four years before the next deadline. Choose 3.13 only if a dependency you cannot replace has no 3.14 build yet.
  • On 3.11: schedule the same move for the first half of 2027. You have until October 2027 upstream, and until 30 June 2027 on Lambda. Doing it in a quiet quarter costs less than doing it against a platform cut-off.
  • On 3.12, 3.13 or 3.14: stay, unless 3.15 gives you something you will measure. Good reasons are start-up time in command-line tools, serverless functions and worker fleets (lazy imports), or a free-threading pilot that benefits from the new extension ABI.
  • Starting a new service: 3.14 for anything shipping this quarter, 3.15 if the first production release is in 2027 and your hosting platform and compiled dependencies already support it.
  • Do not put 3.15.0 into production because it is new. Wait for the point releases that match your risk level, and test against the latest one.

That last point is not superstition. The 3.15 release notes record two recent corrections that only real-world use exposed. Python 3.14.0 to 3.14.4 shipped a new incremental garbage collector, which was reverted to the 3.13 generational collector in 3.14.5 and 3.15. And 3.15.2 fixed a regression introduced in 3.15.0 in which threads importing a submodule for the first time at the same moment could deadlock or raise spurious import errors. Both were fixed quickly. Both would have been unpleasant to find in production in the first week.

For example, a company with a Django application and a set of Celery workers on 3.10, deployed in containers, would normally retarget everything to 3.14, keep the standard GIL-enabled build, and treat 3.15 features as a separate, later change. This is an illustration, not a client case.

What Python 3.15 adds, and what to adopt first

Most of 3.15 is useful without being urgent. The table sorts the changes by what I would do with them in a production code base. Figures come from the release notes and the accepted proposals; they describe benchmarks and reported workloads, not your service.

ChangeWhat it doesEvidenceMy advice
Lazy imports (PEP 810)A lazy import statement defers loading a module until first use; a flag or environment variable can apply it globallyThe proposal reports start-up time reductions of 50 to 70% for command-line tools and memory savings of 30 to 40% in real workloadsAdopt first, selectively, where cold start matters
Tachyon sampling profiler (PEP 799)A built-in profiler that attaches to a running process by PID, with sampling rates of up to 1,000,000 Hz and flame-graph outputRelease notesAdopt in staging immediately; it changes no application code
Upgraded experimental JITGenerates better machine code on x86-64 and AArch64, and now supports Windows7 to 8% geometric mean improvement on pyperformance on x86-64 Linux, 11 to 12% on AArch64 macOS; individual benchmarks range from about 15% slower to more than 100% fasterBenchmark your own hot paths before enabling; it is still labelled experimental
UTF-8 default encoding (PEP 686)open() without an encoding argument now uses UTF-8 on every platformRelease notesGood for consistency; audit file handling on Windows hosts first
frozendict (PEP 814)An immutable, hashable mapping in the built-insRelease notesUse for configuration and cache keys in new code
Stable ABI for free-threaded builds (PEP 803)Extension authors can ship one binary that works across free-threaded versionsRelease notesMatters indirectly: it should improve package availability through 2027
Frame pointers on by default (PEP 831)System profilers and debuggers can unwind Python stacks reliablyRelease notesHelps operations; native build scripts should keep the flags

A closer look at lazy imports

Lazy imports are the feature most teams will reach for, so they deserve a warning as well as a recommendation. PEP 810 is explicit about two behavioural changes. Side effects that a module performs at import time, such as registering a plugin, a signal handler or a model class, run at first use instead of at start-up, or not at all if the name is never touched. And an import that would have failed at start-up now fails at first use, which may be deep inside a request.

  • Use the explicit lazy import keyword on heavy, rarely used modules before you consider the global switch.
  • Keep imports eager wherever the framework depends on import-time registration: ORM models, task definitions, route modules, serializers.
  • Add a start-up smoke test that touches every lazily imported name, so a missing dependency fails the deployment and not a customer request.
  • Measure cold start and resident memory before and after. If the numbers do not move, remove the change.

Free-threading: when dropping the GIL pays off

For most of Python’s history one lock, the global interpreter lock, has allowed only one thread at a time to execute Python code. Teams worked around it with multiple processes. The free-threaded build removes the lock so that threads in one process can use several cores. Its status has moved quickly: experimental in 3.13, then officially supported but optional in 3.14 after the Steering Council accepted PEP 779 on 16 June 2025. Python 3.15 adds the stable extension ABI and installs free-threading support by default in the official macOS binaries.

Supported does not mean default, and it does not mean free. The same PEP leaves the question of making this build the default to a future proposal, with no timeline. The costs are documented:

  • Single-thread overhead. The free-threading guide reports average overhead on the pyperformance suite from about 1% on macOS aarch64 to 8% on x86-64 Linux. PEP 779 set the acceptance limits at a 15% slowdown and 20% more memory.
  • More memory. The guide says the build typically uses more memory, for example because object headers are larger and interned strings become immortal.
  • Silent fallback. If you import a C extension that is not marked as supporting free threading, the interpreter may re-enable the GIL for the whole process and print a warning. You can pay the overhead and get none of the benefit without noticing.
  • Your own thread safety. Built-in types keep internal locks, but the guide recommends explicit locks over relying on them, and warns that sharing one iterator between threads can yield duplicate or missing elements. Code that was accidentally safe under the GIL may not be safe now.

A decision test by workload

WorkloadLikely benefitWhyRecommendation for 2027
I/O-bound web API on asyncio, scaled with several worker processesLowTime is spent waiting on the database and network; processes already use the coresStay on the standard build
CPU-bound work in pure Python inside a service: parsing, validation, rule evaluation, document chunkingHighThreads can run on all cores and share memory without copying data between processesPilot now on 3.14 or 3.15
AI service layer that fans out many tool calls and post-processes results in PythonMedium to highLess serialization between workers and more shared caches, if the processing is CPU-heavyPilot one service after profiling
Numerical work dominated by native librariesLow to mediumMuch of that code already runs outside the GILMeasure before investing
Large in-memory caches or models duplicated across worker processesMediumOne process with threads can hold one copyCompare memory per instance carefully, since the build itself uses more
Services that depend on older compiled extensionsNone yetThe GIL is re-enabled at importWait, and ask the vendor for a roadmap

How to run a pilot

  1. Pick one CPU-bound service with good tests and a clear metric: throughput per instance, p95 latency or cost per thousand jobs.
  2. Check every compiled dependency for a free-threaded wheel on your target version. One unmarked extension is enough to cancel the pilot.
  3. Assert the runtime state in a health check. python -VV shows whether the build is free-threaded, and sys._is_gil_enabled() tells you whether the GIL is actually off in the running process. Fail the deployment if it is on.
  4. Load-test both builds on the same hardware, with the same number of cores, comparing threads on the free-threaded build against your current process model on the standard build.
  5. Review shared state. Module-level caches, counters, lazy singletons and shared iterators need explicit locks or thread-local storage.
  6. Decide on numbers. If the gain on your metric does not clearly exceed the overhead and the extra testing, keep the standard build and revisit in a year.

My position for 2027: the free-threaded build is ready for deliberate pilots and for new CPU-bound services with a short dependency list. It is not yet the build I would choose by default for an existing Django or FastAPI estate, where the process model already works and the dependency list is long.

What breaks: the changes to check first

Python upgrades are smaller than they used to be, and jumping from 3.10 to 3.14 mostly surfaces removals that were announced years ago as deprecations. The items below are specific to 3.15 and come from its release notes; they are the ones I would turn into tests before retargeting a service.

Change in 3.15Why it matters operationally
Default text encoding is UTF-8 regardless of localeScripts on Windows servers that read legacy-encoded files without an encoding argument will read them differently; PYTHONUTF8=0 restores the old behaviour while you fix them
datetime.strptime() raises ValueError for a format with a day of month and no yearDate parsing of partial dates in imports and reports can start failing
All sqlite3.connect() parameters except database are keyword-onlyPositional calls in older utilities and tests break
base64.urlsafe_b64decode() no longer requires paddingToken validation that relied on a padding error must check explicitly
assertWarns() no longer swallows warnings that do not matchTest runs that treat warnings as errors may start failing
Removed: sre_compile, sre_constants, sre_parse, CGIHTTPRequestHandler, loader load_module() methodsOld plugins and vendored libraries that import these stop at start-up
isinstance(x, dict) is false for a frozendictLibraries that adopt the new type can trip strict type checks in your code
CPython is built with frame pointers by defaultCustom native build scripts should preserve the unwind chain

Two wider checks matter more than any single item. First, confirm that every dependency with compiled code publishes a build for your target version and platform, including the base image architecture you deploy on. Second, upgrade the dependency set and the interpreter in separate steps where you can, so that a regression points at one cause. Lock files, hash checking and an audit step in CI belong to the same work; see our guide to software supply chain security.

AI coding agents are good at the mechanical part of this: finding deprecated calls, updating project metadata and proposing dependency bumps across many repositories. Keep three decisions with people: the target version, any change to the concurrency model, and anything that touches base images or runtime settings. Make the test suite the gate, and keep each pull request to one service so a reviewer can read it.

A 30-day plan and checklist

For a product with a handful of Python services and reasonable test coverage, moving from 3.10 to 3.14 fits in about four weeks of part-time work for one or two engineers. Treat the timings as a planning guide, not a quote.

  1. Week 1: inventory. List every deployable: services, workers, scheduled jobs, serverless functions, internal tools and notebooks that run on a schedule. Record the Python version, the base image or runtime identifier, the host and the owner. Check each platform’s own dates, not only python.org.
  2. Week 2: upgrade in a branch. Set the version in pyproject.toml, the version file and the Dockerfile. Rebuild the lock file. Run the tests with deprecation warnings shown as errors and fix what appears.
  3. Week 3: prove it. Run the full suite, then load-test the busiest paths against a baseline taken before the change. Compare latency, memory per worker and cold-start time. Rehearse the rollback.
  4. Week 4: release gradually. Use a canary or blue-green release for the highest-traffic service, watch error rates and memory for several days, then roll out the rest and remove old images and runtimes.

Checklist

  • Every Python workload listed with version, runtime or base image, host and owner.
  • All 3.10 workloads on 3.10.22 until they are upgraded.
  • Target version chosen per workload, with the reason recorded.
  • Platform support confirmed for the target: serverless runtime, base image, CI runners and monitoring agents.
  • Wheels confirmed for every compiled dependency on the target version and architecture.
  • Release notes read for each version crossed; applicable items turned into tests.
  • Lock file rebuilt and a dependency audit running in CI.
  • Performance and memory compared with a pre-upgrade baseline.
  • Standard or free-threaded build chosen deliberately and asserted in a health check.
  • Rollback path tested for the first production release.
  • The October 2027 date for 3.11, and your platform’s earlier date, added to the support register.

If your team does not have the capacity for this alongside feature work, it is the kind of job we take on under our software maintenance service, and pipeline and image changes are part of our cloud and DevOps work. This is a description of a service we offer, not a case study. For the wider process, see planning framework, runtime and app store upgrades, and if the upgrade is a moment to revisit the framework itself, choosing a Python web framework.

The practical summary is short. Get off 3.10 this quarter and land on 3.14. Put 3.11 on next year’s plan before a platform date does it for you. Adopt lazy imports and the new profiler from 3.15 where you can measure the gain. Treat free-threading as an engineering experiment with a metric and a health check, and expand it only where the numbers hold.

Frequently asked questions

Will my Python 3.10 application stop working now that it is end of life?

No. The interpreter keeps running. What has ended is the supply of security fixes: 3.10.22, released on 1 October 2026, is the final release. The practical pressure comes from libraries that drop 3.10 and from platforms such as AWS Lambda, which deprecated the python3.10 runtime on 31 October 2026 and will block function updates from 31 August 2027.

Does Python have an LTS version?

No. Every version follows the same schedule: about two years of bug fixes with binary releases, then source-only security fixes until five years after the first release. The useful question is where a version is in that cycle. In November 2026, 3.14 and 3.15 are in the bug-fix phase and 3.11 to 3.13 are security-only.

Should we go straight to Python 3.15?

For an existing production system, usually not yet. It has been out for a few weeks, some platforms still list it as a preview, and compiled dependencies need checking one by one. Python 3.14 is the safer landing today. Starting a new service that ships in 2027 on 3.15 is reasonable once your hosting and dependencies support it.

Will free-threaded Python make our API faster?

Only if your service is limited by CPU-bound Python code running in threads. A typical I/O-bound API that already runs several worker processes will see little change and pays a single-thread overhead that the Python documentation puts at about 1% to 8% on its benchmark suite, plus more memory. Profile first, then pilot one service.

Is the JIT compiler ready for production?

It is still labelled experimental in 3.15. The release notes report average gains of 7 to 8% on x86-64 Linux and 11 to 12% on AArch64 macOS on the pyperformance suite, with individual benchmarks ranging from about 15% slower to more than twice as fast. Benchmark your own workload before enabling it anywhere that matters.

How long does a Python version upgrade take?

It depends on test coverage, the number of deployables and how many compiled dependencies you have. For a small product with a few services, about four weeks of part-time work is a sensible planning figure for 3.10 to 3.14. Systems with thin tests, vendored libraries or unmaintained native extensions take longer, and the first week of inventory will tell you which kind you have.

Sources and methodology

Guidance reflects PoliteTech delivery experience. Dates, version numbers and benchmark figures were checked against the primary sources below on 15 November 2026; scheduled dates can change, so confirm them before you commit a plan. Examples marked as illustrations are not client cases.

  1. Python Software Foundation: Python 3.10.22 release page (1 October 2026) — accessed 15 November 2026. Final release of the 3.10 series and the statement that it will receive no further security updates.
  2. Python Developer’s Guide: Status of Python versions — accessed 15 November 2026. Release dates, current phase and end-of-life dates for 3.10 to 3.16, and the two-year bug-fix and five-year support policy.
  3. Python documentation: What’s New in Python 3.15 — accessed 15 November 2026. Release date of 9 October 2026, feature list, JIT benchmark figures, Tachyon profiler sampling rate, removals and porting notes, the garbage collector reversion and the 3.15.2 import fix.
  4. PEP 810: Explicit lazy imports — accessed 15 November 2026. Syntax and controls, the reported start-up and memory savings, and the stated risks around import-time side effects and deferred errors.
  5. PEP 779: Criteria for supported status for free-threaded Python — accessed 15 November 2026. Acceptance on 16 June 2025, the officially supported but optional status in 3.14, the 15% performance and 20% memory limits, and the absence of a timeline for making it the default.
  6. Python documentation: Python support for free threading — accessed 15 November 2026. Single-thread overhead of about 1% to 8% on pyperformance, higher memory use, automatic re-enabling of the GIL for unmarked extensions, how to check the runtime state, and thread-safety guidance.
  7. AWS Lambda Developer Guide: Lambda runtimes — accessed 15 November 2026. Deprecation and block dates for the python3.10 to python3.14 runtimes and the preview status of python3.15.
  8. Python Software Foundation and JetBrains: Python Developers Survey 2024 results — accessed 15 November 2026. Share of respondents on each Python version (15% on 3.10, 6% on 3.9, 15% on 3.13); more than 30,000 responses collected in October and November 2024. The most recent published edition at the time of writing.

Still running Python 3.10 or 3.11 in production?

We can inventory your Python workloads, recommend a target version for each, carry out the upgrade in your repositories and tell you honestly whether a free-threading pilot is worth your time.