Python · Course 8 of 9

Python: ownership and concurrency

Twelve deeper exercises in resource ownership, reference lifetimes, context propagation, cancellation, bounded work and asynchronous shutdown. Use real Python objects and tasks.

0 of 12 lessons passed

Start lesson 1

Lessons

Progress and your code are kept in this browser only.

  1. Unwind partially acquired resources
  2. Cache without owning object lifetimes
  3. Release resources when iteration stops early
  4. Restore request context after failures
  5. Cancel and await the task you own
  6. Bound task creation as well as active calls
  7. Share one in-flight computation per key
  8. Drain a bounded queue before shutdown
  9. Separate failures without flattening away structure
  10. Enforce an invariant through a data descriptor
  11. Preserve a callable contract in instrumentation
  12. Merge sorted feeds with bounded lookahead

All courses