// notes/

Python 3.15

Coding tips and build notes by Mahir Faysal, a student web developer in Bangladesh: tested Python, HTML, CSS, JavaScript and PHP tutorials, plus notes from my Next.js and Gemini projects. Sample posts are marked and drafts stay in the admin area.

Python Lazy Imports: How the New lazy Keyword Works in Python 3.15
Coding tips

Python Lazy Imports: How the New lazy Keyword Works in Python 3.15

Python 3.15 adds the lazy soft keyword: lazy import json loads the module only when you first use it. Tested examples of the startup saving, where lazy isn’t allowed, how errors appear, -X lazy_imports=all, filters and __lazy_modules__.

October 12, 2026 · 11 min read · 0 views

Python frozendict: The New Immutable Dictionary in Python 3.15 (Tested)
Coding tips

Python frozendict: The New Immutable Dictionary in Python 3.15 (Tested)

Python 3.15 adds frozendict, a built-in immutable, hashable dictionary. Tested examples: creating one, why you can’t change it, using it as a dict key or in a set, merging with |, isinstance checks and a fallback for older Python.

October 12, 2026 · 11 min read · 0 views

// filter

You are inside a slice of the notes.

This view is only the category, tag, or search you asked for. Sample warnings still apply on any article that carries them. Drafts are still hidden. The full list is the learning notes page, which also explains how a note is written and why some posts are marked Sample.