Course banner

Python in Detail

More advanced but practical Python features like dunder methods.

Other courses on Python: Python for Programmers.

About This Course
You'll Learn
More advanced Python features that are useful for everyday work. Dozens of dunder methods, the object system, iterators, and generators.
There are 44 lessons containing 563 code examples.
Prerequisites
Basic Python knowledge like functions, classes, loops, lists, dicts, and variadic functions. We recommend finishing our "Python for Programmers" course first unless you've done projects in Python.
Level 1
Customizing Equality
Class Attributes
Attribute Built-Ins
Subclassing
__dict__
Custom Exceptions
Isinstance and Type
Level 2
Locked Lesson IconLocked
Exception Context and Causes
Properties
Configurable Decorators
Customizing Indexing
Static Methods
Decorators as an API Tool
Class Methods
functools.wraps
Level 3
Locked Lesson IconLocked
Customizing Mathematical Operators
Customizing Attribute Access
Multiple Inheritance
Custom Iterators
Dicts Are Fundamental
The Diamond Problem
Everything Is an Object
__builtins__
Level 4
Locked Lesson IconLocked
Hash
Prime Iterator Example
Eval
Generator Functions
Repr
Itertools
Hashing and Equality
Customizing Hashing
Level 5
Locked Lesson IconLocked
Generator Comprehensions
Callables
Custom Context Managers
Sets
The Context Manager Decorator
Set Operations
Sets in Practice
Frozen Sets
Level 6
Locked Lesson IconLocked
Writing Fast Python Code
Customizing Str and Repr
Slots
Even Classes Are Objects