feat(week-14): add Cookbook ch.14 in-class examples (R/U Bloom split) - #954
Merged
Merged
Conversation
Add 5 in_class examples covering testing, debugging, and exceptions, classified by Bloom's taxonomy (R: Remember, U: Understand) to mirror week-04 structure. Update week-14 README to link the new materials. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
本 PR 為 week-14 新增 Cookbook 第 14 章(測試、除錯與例外)的課堂範例,依 Bloom's Taxonomy 分為記憶層(R)與理解層(U)共 5 個獨立可執行的 Python 檔案,並更新 week-14 主 README 與新增 in_class README 作為導覽。
Changes:
- 新增 5 個範例檔(R01–R03、U01–U02),分別對應 Cookbook 14.1–14.14 的不同節次
- 新增
in_class/README.md作為章節對照與執行說明 - 更新
weeks/week-14/README.md主題敘述並新增「課堂範例」段落
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| weeks/week-14/README.md | 更新週主題並新增課堂範例索引段落 |
| weeks/week-14/in_class/README.md | 新增 in_class 導覽,列出 R/U 章節對照與執行方式 |
| weeks/week-14/in_class/R01-unittest-basics.py | 示範 redirect_stdout、mock.patch、assertRaises |
| weeks/week-14/in_class/R02-exceptions-basic.py | 示範多例外 tuple、except Exception、自定義例外 |
| weeks/week-14/in_class/R03-profile-basic.py | 示範 timed 裝飾器、timeit、cProfile |
| weeks/week-14/in_class/U01-test-warnings-why.py | 解析 skipIf / expectedFailure / stacklevel=2 / Warning 種類 |
| weeks/week-14/in_class/U02-debug-speedup-why.py | 對照四種 raise 寫法、print_exc vs print(e)、local 變數加速 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add 5 in_class examples covering testing, debugging, and exceptions, classified by Bloom's taxonomy (R: Remember, U: Understand) to mirror week-04 structure. Update week-14 README to link the new materials.