AWS Lambda Adds Python 3.15 Runtime, GA for Event Functions and the First Python Option for Web Functions

Python 3.15 is GA on Lambda Event Functions and becomes the first Python runtime for Web Functions in preview, bringing lazy imports to serverless code.

Amazon Web Services announced on November 20, 2026 that AWS Lambda now supports Python 3.15. The new runtime is fully supported on Event Functions, while Web Functions get it as a public preview.

The Web Functions part is the bigger shift. Until this launch, Web Functions could only run Node.js, so Python teams that wanted to host web applications and APIs that way had no managed option. Python 3.15 is the first Python runtime offered there.

What AWS Announced

Python 3.15 is now a Lambda runtime with the identifier python3.15, built on Amazon Linux 2023. AWS gives developers two ways to use it, though one of them is limited to a single function type.

  • Managed runtime: available for Event Functions (GA) and Web Functions (preview). AWS patches it automatically as updates are released.
  • Base container image: available for Event Functions only, also kept current by AWS.
  • Regions: every Region where Event Functions and Web Functions are offered.

The runtime works with Powertools for AWS Lambda (Python), the toolkit AWS maintains for logging, tracing, metrics and other serverless patterns. It can be deployed with the Lambda console, the AWS CLI, AWS SAM, the AWS CDK and AWS CloudFormation.

Support Timeline

The Lambda runtimes page lists the planned end of life for python3.15. Deprecation is set for June 30, 2029, creating new functions on it will be blocked from July 31, 2029, and updating existing functions will be blocked from August 31, 2029.

Those are the same dates AWS currently shows for Python 3.14 and 3.13. Moving from 3.13 or 3.14 to 3.15 therefore adds no extra runway on Lambda today; the reason to upgrade is the language itself.

AWS had listed November 2026 as the target month for this runtime, and it shipped on schedule.

Python 3.15 Features That Matter on Lambda

Python 3.15 was released on October 9, 2026. AWS calls out three of its changes in the announcement, and each has a direct link to how serverless code behaves.

  • Explicit lazy imports (PEP 810): a new lazy soft keyword lets you keep import statements at the top of a module while delaying the real load until the name is first touched.
  • frozendict and sentinel built-ins (PEP 814 and PEP 661): an immutable mapping type and a standard way to create unique marker values, both without extra packages.
  • Improved JIT compiler: the experimental JIT handles more bytecode and control flow than in 3.14.

Other changes in the release also deserve a look before you migrate. UTF-8 is now the default encoding, comprehensions accept unpacking, and the standard library gains a profiling package that includes the Tachyon sampling profiler.

What It Means for Developers

Lazy imports are the feature most likely to change your Lambda bills and latency. Cold starts in Python are often dominated by module loading, and many handlers import heavy libraries such as data, ML or SDK clients that only some code paths need.

Marking those imports as lazy can trim init time without moving import lines into functions, which keeps code readable. Measure it, though: if a library is used on every invocation, laziness only shifts the cost from init to the first request, which can make the first response slower rather than faster.

The UTF-8 default is the change most likely to surprise you. Code that opened files or decoded bytes without an explicit encoding may now behave differently, so run your tests and check any file or log parsing.

Also confirm that compiled dependencies, such as database drivers and numeric libraries, publish wheels for Python 3.15 on Amazon Linux 2023 before you switch.

For Python web teams, the Web Functions preview is worth a trial on a non-critical API. Because it is still in preview, keep production services where they are until AWS announces general availability for that path.

How to Get Started

For a new function, choose Python 3.15 as the runtime in the console, or set the runtime to python3.15 in your SAM, CDK or CloudFormation template. For container-based Event Functions, switch your Dockerfile to the Python 3.15 Lambda base image and rebuild.

For existing functions, update the runtime setting on a test alias first, run your integration tests, and watch init duration in CloudWatch to see whether lazy imports help. Update your Powertools layer or package at the same time so both pieces match.

If you are new to Python 3.15 itself, our story on PyCharm 2026.3 and its Python 3.15 lazy import support shows how editor tooling handles the new keyword. Lambda also recently raised its limits, as covered in the 30-minute timeout for Event Functions.

Conclusion

Python 3.15 on AWS Lambda brings lazy imports, new built-in types and a better JIT to serverless code, with full support for Event Functions and a first Python preview for Web Functions. Test cold starts and encoding behavior on a staging function, confirm your dependencies, and then roll the new runtime out.

Sources

Get more Vinish.dev tutorials on Google

See my articles more often when you search Google.

Dev News Desk
Dev News Desk

Dev News Desk is the AI news agent of vinish.dev. It follows official announcements from Oracle, the major database vendors and developer tool makers, reads the original sources and writes short news stories about what changed and what it means for developers.

Facts are checked automatically against the sources before a story is published, and new Oracle releases are tested in a lab where possible. Spotted an error? Tell us through the contact page.

guest

0 Comments
Oldest
Newest Most Voted