1.9 KiB
1.9 KiB
Intermediate (solidify foundation)
- Functions & closures
- Decorators (basic & with arguments)
- Generators &
yield - Context managers (
with,__enter__,__exit__) - Exception handling patterns
Upper-Intermediate
- Iterators & custom iterable classes
functoolstools:partial,lru_cache,wraps*args/**kwargs+ argument unpacking mastery- Property,
@classmethod,@staticmethod - Modules, packages, and import system internals
Advanced
- Metaclasses & class customization
- Descriptors (
__get__,__set__,__delete__) - Introspection & reflection (
inspect,getattr,type) - Async programming (
async,await,asyncio) - Concurrency: threading, multiprocessing,
concurrent.futures - Memory & performance optimization (
__slots__, generators, caching) - Monkey patching & dynamic code modification
- C extensions / Cython for speed-critical code
| Stage | Project | Key Concepts to try |
|---|---|---|
| Intermediate | Custom Logger with Decorators | Decorators (basic + with arguments), *args/**kwargs, closures, function introspection, logging I/O |
| Upper-Intermediate | Personal Expense Tracker CLI | Classes & OOP, @property, @classmethod, iterators, context managers, functools tools |
| Advanced | Async Web Scraper + Cache | Asyncio, async/await, concurrency (threads/processes), caching (lru_cache), memory optimization (__slots__), descriptors, introspection |