Python Variables: Names, Not Boxes.
Why Python variables are references, not containers — covering mutability, dynamic typing, scope (LEGB), and the mutable default argument trap.
Sharing insights, tutorials, and thoughts about web development, AI systems, Python, Django, and the developer journey.
Why Python variables are references, not containers — covering mutability, dynamic typing, scope (LEGB), and the mutable default argument trap.
A guide to lists, tuples, dicts, and sets in Python, plus the collections module's defaultdict, Counter, deque, and namedtuple.
Demystifying Python decorators from first principles — the @ syntax, functools.wraps, decorators with arguments, and class-based decorators.
How Python generators produce values one at a time, why they save memory over lists, and how yield, generator expressions, and yield from work.
A behind-the-scenes look at reference counting, the cyclic garbage collector, pymalloc, and common memory pitfalls in Python.
A practical walkthrough of reading, writing, and managing files in Python — modes, encodings, binary data, error handling, and pathlib.
What the Global Interpreter Lock actually does, why it exists, when it matters, and how to work around it with multiprocessing and asyncio.
A tour of Python functions beyond the basics — first-class objects, *args/**kwargs, lambdas, closures, and type hints.
A practical look at how Python's with statement and __enter__/__exit__ guarantee resource cleanup — plus the easier contextlib shortcut.
Online • Here to help
Hi! I'm here to help. Ask me about Rahim's projects, services, experience, or anything else!
Quick questions:
Simple FAQ Assistant