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
IT Services Circle
IT Services Circle
Sep 3, 2025 · Fundamentals

Unlock Python’s Magic: Master Dunder Methods for Cleaner, Powerful Code

Learn how Python’s special “dunder” methods like __str__, __add__, __eq__, __iter__, and others let you customize object representation, arithmetic, comparison, and iteration, turning your classes into intuitive, built‑in‑type equivalents with clear examples and practical code snippets.

Code ExamplesObject-OrientedPython
0 likes · 8 min read
Unlock Python’s Magic: Master Dunder Methods for Cleaner, Powerful Code
Data STUDIO
Data STUDIO
Aug 26, 2025 · Fundamentals

How Python Dunder Methods Make Your Code Cleaner and More Powerful

This article explains Python's dunder (double‑underscore) magic methods, showing how overriding __str__, __repr__, __add__, __eq__, __iter__, and others lets custom classes behave like built‑in types, with concrete examples such as Book, Wallet, and TransactionHistory.

Pythoncustom classesdunder methods
0 likes · 6 min read
How Python Dunder Methods Make Your Code Cleaner and More Powerful
php Courses
php Courses
Apr 1, 2025 · Fundamentals

Understanding Python Magic (Dunder) Methods

This article explains Python's magic (dunder) methods, categorizing them by purpose—construction, representation, comparison, arithmetic, container behavior, callability, and context management—and provides clear code examples illustrating how to customize class behavior for more Pythonic, intuitive objects.

Object-OrientedPythondunder methods
0 likes · 11 min read
Understanding Python Magic (Dunder) Methods
Test Development Learning Exchange
Test Development Learning Exchange
Aug 20, 2024 · Fundamentals

Using Single and Double Underscores in Python for Internal Methods, Attributes, and Special Dunder Methods

The article explains how to use single and double underscores in Python to define internal methods, attributes, and special dunder methods such as __init__, __str__, __bool__, __new__, __format__, __eq__, __del__, __copy__, and __deepcopy__, providing usage scenarios and code examples for each.

class designdunder methodsunderscore
0 likes · 8 min read
Using Single and Double Underscores in Python for Internal Methods, Attributes, and Special Dunder Methods