« * K @mathspp.com

Rodrigo Girão Serrão 🐍🚀 @mathspp.com

2026-10-14 13:02 UTC

Python startup times just got faster. In 3.15, you can use the keyword `lazy` to make a lazy import (`math` and `Path` below). Lazily imported modules are only loaded WHEN they're used, and IF they're used. Use them to defer loading of modules that may not be required.

1 picture (not shown on this phone): Python 3.15 code snippet with import json lazy import math lazy from pathlib import Path

1 likes, 1 reposts, 1 replies

3 Next post4 More from @mathspp.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup