Python

Learn Python programming from scratch

344 tutorials
12 of 344 tutorials
Jul 13, 2026· 8 min read

Everything Is an Object in Python

See proof that every value in Python is an object: integers, functions, classes, modules, types, and even code itself all share the same object foundation.

Object ModelAdvancedPython
Jul 13, 2026· 8 min read

Python Data Model and Magic Methods

Understand the Python data model: how protocols and magic methods let your objects work with built-in syntax like len(), +, in, and for loops.

Pythondata-modelAdvanced
Jul 13, 2026· 10 min read

Special Methods in Python

Learn the most important special methods in Python: __str__, __repr__, __eq__, __hash__, __bool__, __call__, __getitem__, and more, with practical examples.

AdvancedPythondata-model
Jul 13, 2026· 8 min read

Customize Python Objects with Magic Methods

Learn to control attribute access on Python objects with __getattr__, __setattr__, __delattr__, and __getattribute__, plus practical customization patterns.

Pythondata-modelAdvanced
Jul 13, 2026· 8 min read

Python Descriptors and `__get__`

Learn how Python descriptors work: the __get__, __set__, and __delete__ protocol that powers properties, methods, and attribute access control.

AdvancedPythondescriptors
Jul 13, 2026· 8 min read

Python Properties vs Descriptors

Compare Python properties and descriptors: when to use @property for simple cases and when to reach for a full descriptor class for reusable attribute management.

AdvancedPythondescriptors
Jul 13, 2026· 9 min read

Python Metaclasses and `type()`

Learn how Python metaclasses work: using type() to create classes dynamically, writing custom metaclasses, and knowing when metaclasses are the right tool.

PythonAdvancedmetaclasses
Jul 13, 2026· 8 min read

Dynamic Attribute Access in Python

Learn dynamic attribute access with getattr(), setattr(), hasattr(), and delattr(). Build object proxies, attribute delegation, and data-driven attribute patterns.

Object ModelAdvancedPython
Jul 13, 2026· 8 min read

Attribute Lookup in Python

Learn the step-by-step process Python uses to resolve attribute access, from data descriptors to instance dictionaries to __getattr__ fallback.

PythonObject ModelAdvanced
Jul 13, 2026· 9 min read

Advanced Python Mistakes to Avoid

Learn the most common advanced Python mistakes: mutable defaults, late-binding closures, misuse of metaclasses, and other pitfalls that trip up experienced developers.

AdvancedBest PracticesPython
Jul 13, 2026· 9 min read

Build a Python Library with Advanced Features

Learn to build a production-ready Python library: package structure, public API design, type hints, custom exceptions, descriptors, and metaclasses working together.

PythonProjectAdvanced
Jul 13, 2026· 7 min read

The Factory Pattern in Python

Learn how to use the factory pattern in Python to encapsulate object creation, making your code more flexible and easier to extend.

PythonBest PracticesAdvanced