Teach & learn

Training & notes

Python, finance, fintech, AI, machine learning, and adjacent topics — structured for reuse.

All Python AI Agents LLM LangGraph RAG

Python

Classes in Python

Classes in Python

advanced

__new__ and __init__ play distinct roles in Python object creation. While __new__ is responsible for creating and returning a new instance, __init__ initializes that …

Classes OOP Objects Python

Python

Metaclasses in Python

Metaclasses in Python

advanced

Metaclasses are Python’s mechanism for controlling class creation itself. While classes define how objects are created, metaclasses define how classes are created. In this …

Classes OOP Objects Python

Python

Magic Methods in Python

Magic Methods in Python

intermediate

Magic Methods in Python: The Secret Sauce Behind Elegant Code Ever wondered why you can write vector1 + vector2 , if user in users …

Classes Magic Methods OOP Python

Python

Magic Attributes

Magic Attributes

intermediate

Magic attributes, also known as dunder attributes, are special variables that Python automatically creates and attaches to modules, classes, functions, and objects. They provide …

Classes Magic Attributes OOP Objects Python