Translate library/exceptions part 1/3#817
Merged
Merged
Conversation
Collaborator
Author
|
@mattwang44 我的 repo 權限好像因為之前沒有設定 2FA 被拿掉了,再麻煩你幫忙看一下 🙏 |
mindihx
commented
Feb 18, 2024
| "attr:`!__suppress_context__` 屬性為 ``True``,因此使用 ``raise new_exc from " | ||
| "None`` 實際上會以新的例外取代舊的例外以利於顯示(例如轉換 :exc:`KeyError` " | ||
| "為 :exc:`AttributeError`),同時保持舊的例外可以透過 :attr:`!__context__` 取" | ||
| "得以方便 debug 的時候檢查。" |
| "此方法設定 *tb* 為該例外的新的回溯並回傳該例外物件。在 :pep:`3134` 的例外連鎖" | ||
| "功能變得可用之前,此方法曾被更普遍使用。下面的範例顯示我們如何將 " | ||
| "``SomeException`` 的實例轉換為 ``OtherException`` 的實例同時保留回溯。一旦被" | ||
| "引發,目前的 frame 會被加進 ``OtherException`` 的回溯,就像原來 " |
Collaborator
There was a problem hiding this comment.
Collaborator
已寄送邀請信,再麻煩查收~ |
Collaborator
Author
收到了~ 謝謝 |
rockleona
reviewed
Feb 26, 2024
ken71301
reviewed
Mar 1, 2024
| "`except` or :keyword:`finally` clause, or a :keyword:`with` statement, is " | ||
| "used." | ||
| msgstr "" | ||
| "當引發一個新的例外而同時有另一個例外已經正在被處理,這個新例外的 :attr:`!" |
Collaborator
There was a problem hiding this comment.
very nit:
Suggested change
| "當引發一個新的例外而同時有另一個例外已經正在被處理,這個新例外的 :attr:`!" | |
| "當引發一個新的例外而同時有另一個例外已經正在被處理時,這個新例外的 :attr:`!" |
ken71301
reviewed
Mar 8, 2024
ac610ac to
b083464
Compare
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.
issue: #806