Tagged articles
5 articles
Page 1 of 1
Data STUDIO
Data STUDIO
Jan 21, 2026 · Fundamentals

Unlock Python’s Hidden Magic: Dunder Methods That Make Your Code Feel Native

This article introduces essential Python dunder methods such as __missing__, __fspath__, __call__, __slots__, __enter__/__exit__, __aiter__/__anext__, __getattr__/__getattribute__, explaining their problem contexts, concrete implementations, performance benefits, and best‑practice trade‑offs with clear code examples.

__call____missing____slots__
0 likes · 17 min read
Unlock Python’s Hidden Magic: Dunder Methods That Make Your Code Feel Native
Python Programming Learning Circle
Python Programming Learning Circle
Feb 8, 2020 · Fundamentals

Common Python Pitfalls and How to Avoid Them

This article surveys typical Python traps—including UnboundLocalError, mutable default arguments, in‑place versus out‑of‑place updates, tuple syntax, shared mutable containers, list mutation during iteration, closure late binding, __del__ pitfalls, import inconsistencies, version differences, operator quirks, attribute magic methods, and the GIL—explaining why they occur and offering safe alternatives.

GILImportPitfalls
0 likes · 12 min read
Common Python Pitfalls and How to Avoid Them