Skip to content

feat(week-14): add Cookbook ch.14 in-class examples (R/U Bloom split) - #954

Merged
AugustChaoTW merged 1 commit into
mainfrom
week-08
May 28, 2026
Merged

AugustChaoTW merged 1 commit into
mainfrom
week-08

Conversation

@AugustChaoTW

Copy link
Copy Markdown
Contributor

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.

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>
Copilot AI review requested due to automatic review settings May 28, 2026 00:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@AugustChaoTW
AugustChaoTW merged commit d61a65f into main May 28, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants