RANIARANIA Academy

Advanced OOP, Decorators, Iterators & Generators

Master the advanced object-oriented features that make Python expressive — dunder methods, properties, iterators, generators, decorators, context managers, dataclasses and abstract base classes. Every idea is taught with runnable Python 3.10+ code and a hands-on lab of ten exercises. This course helps you prepare for the Python Institute PCPP certification.

Watch the free preview

Dunder methods and the Python data model — free to watch, no account needed.

Python: Professional ADVANCED · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Implement the core dunder methods so custom classes behave like built-in types
  • Control attribute access with properties, class methods and static methods
  • Build iterators and generators using the iteration protocol and the yield keyword
  • Write function decorators, decorators that take arguments, and context managers
  • Model data and type hierarchies with dataclasses and abstract base classes

Syllabus

Objects That Behave Like Built-ins
Dunder methods and the Python data modelFree preview15 min
Properties, class methods and static methods15 min
Iteration Protocols
Iterators — __iter__ and __next__15 min
Generators and the yield keyword15 min
Decorators and Context Managers
Decorators — wrapping and configuring functions15 min
Context managers and the with statement15 min
Modern Class Tooling
Dataclasses15 min
Abstract base classes15 min
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–515 min
Programming Exercises 6–1015 min