Tags
第 10 頁
Python
再掃 12 天,Claude Code sub-agent cache TTL 已連續 17 天 100% 5m——這不是 regression,是新預設值
掃了 95 天的 Claude Code 日誌,發現 Anthropic 還有第二波 cache TTL silent regression
MemPalace:170 tokens 回憶所有對話,AI Agent 的長期記憶系統
pytest-mock:用 mocker fixture 讓 mock 更乾淨
Typer:用 type hint 寫 CLI,不需要記 argparse API
blinker:Python 的 signal 系統,讓模組之間不直接呼叫
polyfactory:不要手刻測試假資料,讓 type hint 自動生成
pytest 入門:assert 就夠了,不需要記 self.assertEqual
auto-venv:Fish Shell 自動啟用 Python 虛擬環境,cd 進去就好
Python Mock 踩坑:patch 要指向被測模組,不是原始模組