<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/python-3-15-preview-lazy-imports-quiz-real-python-m6hk3ltll" -->

---
title: Python 3.15 Preview: Lazy Imports Quiz – Real Python
description: An interactive 12-question quiz tests understanding of Python 3.15's new lazy imports feature, covering the new `lazy` keyword that defers module loading until...
canonical: https://daily.dev/posts/python-3-15-preview-lazy-imports-quiz-real-python-m6hk3ltll
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Python 3.15 Preview: Lazy Imports Quiz – Real Python | daily.dev
og:description: An interactive 12-question quiz tests understanding of Python 3.15's new lazy imports feature, covering the new `lazy` keyword that defers module loading until...
og:url: https://daily.dev/posts/python-3-15-preview-lazy-imports-quiz-real-python-m6hk3ltll
og:image: https://api.daily.dev/og/posts/m6hk3lTlL.png
og:image:alt: Python 3.15 Preview: Lazy Imports Quiz – Real Python
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.

# Python 3.15 Preview: Lazy Imports Quiz – Real Python

**[Real Python](https://daily.dev/sources/rpython)** · 1 min read · 0 upvotes · 0 comments

## Summary

An interactive 12-question quiz tests understanding of Python 3.15's new lazy imports feature, covering the new `lazy` keyword that defers module loading until first use, startup time savings, cases where Python rejects the keyword, the `__lazy_modules__` mechanism for backporting the behavior to older Python versions, and which imports must remain eager.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://realpython.com/quizzes/python315-lazy-imports>

## Questions this post answers

### What does the new lazy keyword do in Python 3.15?

It defers loading a module until the first time code actually reads its name, while the import statement itself still stays at the top of the file. This can reduce startup time by skipping the cost of running imports that a program never ends up using during a given execution.

_Developers tracking Python 3.15 changes like this can follow release details on daily.dev._

### How can I get lazy import behavior on Python versions before 3.15?

Older Pythons can approximate the same deferral using a module-level dunder called __lazy_modules__, which achieves similar startup savings without the new lazy keyword. Some imports still have to remain eager regardless of which mechanism is used, since Python does not allow deferring every kind of import.

_Teams weighing when to adopt lazy imports can compare version-specific options via daily.dev._

## Similar posts on daily.dev

- [Speed boost your Python programs with new lazy imports](https://daily.dev/posts/speed-boost-your-python-programs-with-new-lazy-imports-nrny4b0qs) · InfoWorld · 0 upvotes · 0 comments
- [Explicit Lazy Imports Are Coming to Python 3.15](https://daily.dev/posts/explicit-lazy-imports-are-coming-to-python-3-15-e4cphmy32) · JetBrains · 0 upvotes · 0 comments
- [Python 3.15 Preview: Upgraded JIT Compiler Quiz – Real Python](https://daily.dev/posts/python-3-15-preview-upgraded-jit-compiler-quiz-real-python-rq9dedraj) · Real Python · 0 upvotes · 0 comments
- [TIL \#141 – Inspect a lazy import](https://daily.dev/posts/til-141-inspect-a-lazy-import-cuhia3t7d) · Planet Python · 1 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/python-3-15-preview-lazy-imports-quiz-real-python-m6hk3ltll)

```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":"Python 3.15 Preview: Lazy Imports Quiz – Real Python","url":"https://daily.dev/posts/python-3-15-preview-lazy-imports-quiz-real-python-m6hk3ltll","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/python-3-15-preview-lazy-imports-quiz-real-python-m6hk3ltll"},"datePublished":"2026-09-09T12:08:10.575Z","dateModified":"2026-09-13T19:35:25.876Z","description":"An interactive 12-question quiz tests understanding of Python 3.15's new lazy imports feature, covering the new `lazy` keyword that defers module loading until...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d34f31e352d21025684ae5b661d1ed6a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d34f31e352d21025684ae5b661d1ed6a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Real Python","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":"Real Python","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rpython","url":"https://daily.dev/sources/rpython"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/python-3-15-preview-lazy-imports-quiz-real-python-m6hk3ltll","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Real Python","item":"https://daily.dev/sources/rpython"},{"@type":"ListItem","position":3,"name":"Python 3.15 Preview: Lazy Imports Quiz – Real Python"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/python-3-15-preview-lazy-imports-quiz-real-python-m6hk3ltll#faq","mainEntity":[{"@type":"Question","name":"What does the new lazy keyword do in Python 3.15?","acceptedAnswer":{"@type":"Answer","text":"It defers loading a module until the first time code actually reads its name, while the import statement itself still stays at the top of the file. This can reduce startup time by skipping the cost of running imports that a program never ends up using during a given execution. Developers tracking Python 3.15 changes like this can follow release details on daily.dev."}},{"@type":"Question","name":"How can I get lazy import behavior on Python versions before 3.15?","acceptedAnswer":{"@type":"Answer","text":"Older Pythons can approximate the same deferral using a module-level dunder called __lazy_modules__, which achieves similar startup savings without the new lazy keyword. Some imports still have to remain eager regardless of which mechanism is used, since Python does not allow deferring every kind of import. Teams weighing when to adopt lazy imports can compare version-specific options via daily.dev."}}]}
```

