Python Advanced: Code That Scales Past Your Own Laptop
This is for people who write Python every week and now need it to handle bigger data, more work at the same time, and other people installing it. You will build real decorators, process data one piece at a time, catch type errors before they run, choose between threads, processes and asyncio, then package and profile your code. Most of this is not needed for small scripts. When it is needed, not knowing it gets expensive.
Course access
-
Functions That Wrap Functions (empty)3Lessons · 20 min
-
Python Closures: Functions That Remember
How an inner function keeps access to the variables of the function that created it, and when you need nonlocal. After this, decorators and callback factories stop looking like magic.
5 min -
Python Decorators in Real Code: Timing, Retry and Logging
Three decorators you would actually use: timing, retry with a limit, and call logging, plus decorators that take arguments. After this, you can write a decorator that keeps the function's name and doesn't hide its errors.
10 min -
-
-
Data That Doesn't Fit in Memory (empty)4Lessons · 25 min
-
Python Iterators: What a for Loop Actually Does
What iter() and next() do behind every for loop, and how to write your own iterator. After this, you understand why some objects can only be looped over once.
5 min -
Python Generators and yield: One Piece at a Time
Generator functions, generator expressions and pipelines that process a large file line by line. After this, you can handle a file bigger than your RAM without loading it.
10 min -
Python Context Managers: Clean Up Even When Things Fail
How with works, how to write your own context manager as a class or with contextlib, and what happens to errors inside it. After this, files, locks and connections get closed even when the code fails.
5 min -
-
-
Catch Bugs Before You Run the Code (empty)3Lessons · 25 min
-
Python Type Hints Beyond the Basics: Optional, Union, Generics
Optional and union types, TypedDict, Protocol, and generic functions and classes. After this, you can describe what your functions really accept and return.
10 min -
Checking Types With mypy in a Real Project
Install mypy, run it on a project, read its errors, and tighten the settings step by step. After this, you can add type checking to existing code without stopping all other work.
10 min -
-
-
Doing More Than One Thing at a Time (empty)3Lessons · 25 min
-
Python Concurrency Basics: Threads, Processes or asyncio?
The difference between waiting work and computing work, what the GIL changes, and when to use threads, processes or asyncio. After this, you can pick the right tool before writing any concurrent code.
10 min -
Python asyncio: Wait for Many Things Without Waiting Longer
async def, await, gather, timeouts and limiting how many tasks run at once. After this, you can run many slow network-style waits at the same time without blocking the event loop.
10 min -
-
-
Ship It, Then Make It Fast (empty)3Lessons · 25 min
-
Packaging a Python Project With pyproject.toml
Turn a folder of code into an installable package with pyproject.toml, a src layout and a command-line entry point. After this, other people can install your code with pip instead of copying files.
10 min -
Profiling Python Code: Measure Before You Optimize
Find where the time actually goes with timeit and cProfile, then fix the slow part and measure again. After this, you stop optimizing code that was never the problem.
10 min -
-
-
Final Check: Python Advanced (empty)1Lessons · 15 min
-
About
This is for people who write Python every week and now need it to handle bigger data, more work at the same time, and other people installing it. You will build real decorators, process data one piece at a time, catch type errors before they run, choose between threads, processes and asyncio, then package and profile your code. Most of this is not needed for small scripts. When it is needed, not knowing it gets expensive.
- Responsible
- Mary Q
- Last Update
- 09/13/2026
- Completion Time
- 2 h 15 min
- Members
- 1
Reviews
Sign in to write a reviewComments
Sign in to commentNo comments yet.