Version-Specific Features

Python 3.15 — The lazy soft keyword

The name lazy is recognized specially in explicit lazy import syntax but remains usable as an ordinary identifier in other contexts. It is not a newly reserved hard keyword. This entry is a contextual lookup draft related to explicit lazy imports. Requires Python 3.15 or the relevant build; example is not executed locally.

Formal Syntax & Structure

python syntaxpython
lazy import module

Return Value

Feature-specific

No single return type; see the example and feature description.

Working Example

Example Snippetpython
import keywordlazy = 7print(lazy, keyword.issoftkeyword('lazy'), keyword.iskeyword('lazy'))
Python Reference