patch的翻譯 · python/python-docs-zh-tw · Discussion #591 (original) (raw)
初步確認
- 我已經確認過 術語列表 中沒有相關術語。
- 我已經確認過 Python 官方術語列表 中沒有相關術語。
術語原文
patch / patching
術語翻譯
修補 或 模擬
說明
出處:unittest.mock.po
原因:若單純以語意與樂詞網的詞彙翻譯,patch應翻譯為「修補」,但在mock相關的文件中,patch的意義較接近於mock本身的「模擬」
例如:Additionally, mock provides a patch() decorator that handles patching module and class level attributes within the scope of a test......
因此想提出針對patch翻譯的討論,究竟該如何翻譯較為正確
參考資料
No response