42 lines
1.9 KiB
Markdown
42 lines
1.9 KiB
Markdown
|
|
---
|
|
|
|
### **Intermediate (solidify foundation)**
|
|
|
|
1. Functions & closures
|
|
2. Decorators (basic & with arguments)
|
|
3. Generators & `yield`
|
|
4. Context managers (`with`, `__enter__`, `__exit__`)
|
|
5. Exception handling patterns
|
|
|
|
---
|
|
|
|
### **Upper-Intermediate**
|
|
|
|
1. Iterators & custom iterable classes
|
|
2. `functools` tools: `partial`, `lru_cache`, `wraps`
|
|
3. `*args` / `**kwargs` + argument unpacking mastery
|
|
4. Property, `@classmethod`, `@staticmethod`
|
|
5. Modules, packages, and import system internals
|
|
|
|
---
|
|
|
|
### **Advanced**
|
|
|
|
1. Metaclasses & class customization
|
|
2. Descriptors (`__get__`, `__set__`, `__delete__`)
|
|
3. Introspection & reflection (`inspect`, `getattr`, `type`)
|
|
4. Async programming (`async`, `await`, `asyncio`)
|
|
5. Concurrency: threading, multiprocessing, `concurrent.futures`
|
|
6. Memory & performance optimization (`__slots__`, generators, caching)
|
|
7. Monkey patching & dynamic code modification
|
|
8. 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 |
|