<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/igmNMcCJJ" -->

---
title: 3 Great NEW Features Coming in Python 3.15 | daily.dev
description: A walkthrough of three upcoming Python 3.15 features drawn from the official release notes: lazy imports (a new keyword that defers module loading until first...
canonical: https://daily.dev/posts/3-great-new-features-coming-in-python-3-15-igmnmccjj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 3 Great NEW Features Coming in Python 3.15 | daily.dev
og:description: A walkthrough of three upcoming Python 3.15 features drawn from the official release notes: lazy imports (a new keyword that defers module loading until first...
og:url: https://daily.dev/posts/3-great-new-features-coming-in-python-3-15-igmnmccjj
og:image: https://api.daily.dev/og/posts/igmNMcCJJ.png
og:image:alt: 3 Great NEW Features Coming in Python 3.15
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 3 Great NEW Features Coming in Python 3.15

**[Indently](https://daily.dev/sources/indently)** · 6 min read · 30 upvotes · 1 comments

## Summary

A walkthrough of three upcoming Python 3.15 features drawn from the official release notes: lazy imports (a new keyword that defers module loading until first use), unpacking syntax (* and **) now supported directly inside list, set, and dictionary comprehensions to avoid nested loops, and a new frozen dictionary type for immutable key-value data. A new sentinel type is mentioned briefly as another upcoming addition. The video is sponsored by Zed, a Rust-based code editor.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=HoPAlzaj3Tc>

## Questions this post answers

### What is a lazy import in Python 3.15 and how does it work?

Python 3.15 introduces a keyword to mark an import as lazy, meaning the module is only loaded when it is actually encountered in the code rather than at the top of the script. This is not a performance optimization by itself but an alternative loading strategy: scripts that conditionally use certain modules (e.g., based on user input) can skip load time for functionality that never gets used.

_Developers timing Python startup costs can follow lazy import changes like this via daily.dev._

### Can you use unpacking syntax like * and ** inside list, set, and dictionary comprehensions in Python 3.15?

Yes, Python 3.15 allows the asterisk and double-asterisk unpacking operators to be used directly inside comprehensions. Instead of writing a nested comprehension like 'x for l in lists for x in l' to flatten a list of lists, you can use '*l for l in lists' to unpack each sublist directly, and the same pattern applies to sets and dictionaries with ** for merging.

_Python developers cleaning up nested comprehensions can track syntax updates like this on daily.dev._

### What is a frozen dictionary in Python 3.15 and how is it different from a regular dictionary?

A frozen dictionary in Python 3.15 is an immutable dictionary type created with a 'frozendict' constructor that accepts a dictionary or keyword arguments just like a regular dict. Once created, its contents cannot be changed; attempting to update a value, such as modifying an existing key, raises an error, so new data must be derived into a separate structure instead.

_Developers favoring immutable data patterns can watch for frozen dictionary support via daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@markozakrajsekgeozs** · 0 upvotes

> Lazy imports? Sound interesting! 👏

## Similar posts on daily.dev

- [Exciting Python features are on the way](https://daily.dev/posts/exciting-python-features-are-on-the-way-u7lhkabec) · InfoWorld · 0 upvotes · 0 comments
- [Go hands-on with Python 3.15](https://daily.dev/posts/go-hands-on-with-python-3-15-ntvozjefq) · InfoWorld · 0 upvotes · 0 comments
- [Python 3.15.0 beta 2 is here\!](https://daily.dev/posts/python-3-15-0-beta-2-is-here--byisq3xcx) · Python Insider · 5 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/3-great-new-features-coming-in-python-3-15-igmnmccjj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"3 Great NEW Features Coming in Python 3.15","url":"https://daily.dev/posts/3-great-new-features-coming-in-python-3-15-igmnmccjj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/3-great-new-features-coming-in-python-3-15-igmnmccjj"},"datePublished":"2026-09-17T16:25:39.584Z","dateModified":"2026-09-17T16:26:08.720Z","description":"A walkthrough of three upcoming Python 3.15 features drawn from the official release notes: lazy imports (a new keyword that defers module loading until first...","image":"https://i.ytimg.com/vi/HoPAlzaj3Tc/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/HoPAlzaj3Tc/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Indently","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Indently","logo":"https://media.daily.dev/image/upload/s--u6wAXJI9--/f_auto/v1725038127/logos/indently","url":"https://daily.dev/sources/indently"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/3-great-new-features-coming-in-python-3-15-igmnmccjj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":30},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"python","timeRequired":"PT6M","video":{"@type":"VideoObject","name":"3 Great NEW Features Coming in Python 3.15","description":"A walkthrough of three upcoming Python 3.15 features drawn from the official release notes: lazy imports (a new keyword that defers module loading until first...","thumbnailUrl":"https://i.ytimg.com/vi/HoPAlzaj3Tc/sddefault.jpg","uploadDate":"2026-09-17T16:25:39.584Z","duration":"PT6M","url":"https://api.daily.dev/r/igmNMcCJJ","embedUrl":"https://www.youtube.com/embed/HoPAlzaj3Tc"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Indently","item":"https://daily.dev/sources/indently"},{"@type":"ListItem","position":3,"name":"3 Great NEW Features Coming in Python 3.15"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/3-great-new-features-coming-in-python-3-15-igmnmccjj","comment":[{"@type":"Comment","text":"Lazy imports? Sound interesting! 👏","datePublished":"2026-09-22T07:07:57.052Z","url":"https://daily.dev/posts/igmNMcCJJ#c-PrdyZQrEM","author":{"@type":"Person","name":"Marko Zakrajsek","url":"https://daily.dev/markozakrajsekgeozs","image":"https://media.daily.dev/image/upload/s--slY3-STy--/f_auto/v1783585373/avatars/avatar_SbncGJHaRHf7KoebEkT1L?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/3-great-new-features-coming-in-python-3-15-igmnmccjj#faq","mainEntity":[{"@type":"Question","name":"What is a lazy import in Python 3.15 and how does it work?","acceptedAnswer":{"@type":"Answer","text":"Python 3.15 introduces a keyword to mark an import as lazy, meaning the module is only loaded when it is actually encountered in the code rather than at the top of the script. This is not a performance optimization by itself but an alternative loading strategy: scripts that conditionally use certain modules (e.g., based on user input) can skip load time for functionality that never gets used. Developers timing Python startup costs can follow lazy import changes like this via daily.dev."}},{"@type":"Question","name":"Can you use unpacking syntax like * and ** inside list, set, and dictionary comprehensions in Python 3.15?","acceptedAnswer":{"@type":"Answer","text":"Yes, Python 3.15 allows the asterisk and double-asterisk unpacking operators to be used directly inside comprehensions. Instead of writing a nested comprehension like 'x for l in lists for x in l' to flatten a list of lists, you can use '*l for l in lists' to unpack each sublist directly, and the same pattern applies to sets and dictionaries with ** for merging. Python developers cleaning up nested comprehensions can track syntax updates like this on daily.dev."}},{"@type":"Question","name":"What is a frozen dictionary in Python 3.15 and how is it different from a regular dictionary?","acceptedAnswer":{"@type":"Answer","text":"A frozen dictionary in Python 3.15 is an immutable dictionary type created with a 'frozendict' constructor that accepts a dictionary or keyword arguments just like a regular dict. Once created, its contents cannot be changed; attempting to update a value, such as modifying an existing key, raises an error, so new data must be derived into a separate structure instead. Developers favoring immutable data patterns can watch for frozen dictionary support via daily.dev."}}]}
```

