Tagged articles
lazy import
11 articles · Page 1 of 1
This article explores Python 3.15's seven most practical features — including lazy imports, frozendict, sentinel values, comprehension unpacking, UTF-8 defaults, sampling profiler, and JIT — with code examples, trade-offs, and a recommended testing workflow using uv for isolated environments.
JITPython 3.15Sentinel
0 likes · 15 min read

ArkTS introduces the `import lazy` syntax to defer module execution until first use, reducing cold-start latency by ~15% through compiler-runtime collaboration and integrated profiling tools that detect, mark, verify, and quantify redundant loads without rewriting call sites.
ArkTSDevEco ProfilerHSP
0 likes · 10 min read

The Python 3.15 beta introduces lazy imports, built‑in frozendict and sentinel types, a low‑overhead sampling profiler, JIT speed gains, unpacking syntax in comprehensions, UTF‑8 as the default encoding, smarter error messages, TypedDict enhancements, and a rollback of incremental GC, each backed by concrete examples and practical guidance for immediate adoption.
JITPythonPython 3.15
0 likes · 15 min read

Python 3.15 brings lazy imports, a built‑in frozendict type, unpacking in comprehensions, JIT improvements, the Tachyon sampling profiler, default UTF‑8 encoding, GC rollback and .start files, delivering up to 12‑13% faster execution on ARM Macs and offering a step‑by‑step migration guide for data engineers.
GCJITPython
0 likes · 18 min read

The article dissects Hermes' three‑layer startup chain—CLI (cli.py), AIAgent facade, and init_agent engine—explaining each layer's responsibilities, lazy imports, session handling, and common pitfalls to help developers understand how a single dialogue is brought to life.
AI agentFacade PatternHermes
0 likes · 12 min read


21CTOMay 12, 2026 · Fundamentals
The Python team has launched the first beta of Python 3.15, introducing a stable free‑threaded ABI, lazy import syntax, the zero‑overhead Tachyon profiler, default UTF‑8 encoding and a faster JIT, while announcing that no further features will be added before the final 2026‑10‑01 release.
Beta ReleaseJITPython
0 likes · 5 min read


21CTOMay 9, 2026 · Fundamentals
Python 3.15’s beta introduces lazy imports, a built‑in frozendict, a sentinel type, a low‑overhead statistical profiler, an upgraded JIT with 8‑13% speed gains, clearer error messages, type‑system tweaks, new list‑comprehension unpacking syntax, and a rollback to generational garbage collection.
JITPythonType System
0 likes · 8 min read


21CTONov 5, 2025 · Fundamentals
PEP 810 introduces explicit lazy imports to Python, allowing modules to be loaded only when needed, which can significantly reduce startup time while keeping the feature optional and backward‑compatible, marking a major step forward after years of community debate and earlier failed attempts.
PEP 810language designlazy import
0 likes · 3 min read

This article explains the purpose and evolution of the __init__.py file, shows how it marks a directory as a Python package, demonstrates core functions like package initialization, API control, lazy importing, version management, and provides best‑practice guidelines with real‑world examples.
InitializationPackagePython
0 likes · 9 min read

Learn how Python's eager import mechanism can cause slow startup in large projects and discover practical lazy import techniques—including function-level imports, custom LazyLoader classes, context manager approaches, and standard library solutions—that dramatically reduce launch time and memory usage while maintaining IDE support.
Startup timelazy importmemory optimization
0 likes · 11 min read

This article explains how Python's eager import mechanism can cause startup delays in large projects and demonstrates various lazy import techniques—including function-level imports, custom LazyLoader classes, standard library LazyLoader, and context manager approaches—to improve startup performance and reduce memory usage, supported by benchmark data and best‑practice recommendations.
Import Mechanismbackend developmentlazy import
0 likes · 12 min read
