# Python 3.15 Preview: Lazy Imports

DevFeed: [Python 3.15 Preview: Lazy Imports](<https://devfeed.tech/articles/python-3-15-preview-lazy-imports-4399.md>)

Original publisher: [Read original article](<https://realpython.com/python315-lazy-imports/>)

Author: Stephen Gruppetta

Published: 2026-09-09T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [cli](<https://devfeed.tech/tags/cli.md>), [code](<https://devfeed.tech/tags/code.md>), [guide](<https://devfeed.tech/tags/guide.md>), [python](<https://devfeed.tech/tags/python.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

Python 3.15 introduces lazy imports, which defer module loading until a name is first used. This tutorial demonstrates how to apply the feature to a command-line tool, measure startup improvements, identify imports that must remain eager, and support older Python versions.

## Source excerpt

Learn how Python 3.15 lazy imports work, how deferring heavy modules cuts your app's startup time, and which imports still have to stay eager.