8000 Translate library/exceptions part 1/3 by mindihx · Pull Request #817 · python/python-docs-zh-tw · GitHub
[go: up one dir, main page]

Skip to content

Translate library/exceptions part 1/3 #817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

mindihx
Copy link
Collaborator
@mindihx mindihx commented Feb 18, 2024

issue: #806

@mindihx
Copy link
Collaborator Author
mindihx commented Feb 18, 2024

@mattwang44 我的 repo 權限好像因為之前沒有設定 2FA 被拿掉了,再麻煩你幫忙看一下 🙏

"attr:`!__suppress_context__` 屬性為 ``True``,因此使用 ``raise new_exc from "
"None`` 實際上會以新的例外取代舊的例外以利於顯示(例如轉換 :exc:`KeyError` "
"為 :exc:`AttributeError`),同時保持舊的例外可以透過 :attr:`!__context__` 取"
"得以方便 debug 的時候檢查。"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

debug 我沒翻

Copy link
Collaborator

Choose a reason for hiding this comment

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

目前未有定論
#513

"此方法設定 *tb* 為該例外的新的回溯並回傳該例外物件。在 :pep:`3134` 的例外連鎖"
"功能變得可用之前,此方法曾被更普遍使用。下面的範例顯示我們如何將 "
"``SomeException`` 的實例轉換為 ``OtherException`` 的實例同時保留回溯。一旦被"
"引發,目前的 frame 會被加進 ``OtherException`` 的回溯,就像原來 "
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

frame 也沒翻

Copy link
Collaborator

Choose a reason for hiding this comment

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

@mattwang44
Copy link
Collaborator

@mattwang44 我的 repo 權限好像因為之前沒有設定 2FA 被拿掉了,再麻煩你幫忙看一下 🙏

已寄送邀請信,再麻煩查收~

@mattwang44 mattwang44 self-requested a review February 18, 2024 10:29
@mindihx
Copy link
Collaborator Author
mindihx commented Feb 19, 2024

@mattwang44 我的 repo 權限好像因為之前沒有設定 2FA 被拿掉了,再麻煩你幫忙看一下 🙏

已寄送邀請信,再麻煩查收~

收到了~ 謝謝

@mattwang44 mattwang44 requested review from rockleona and removed request for mattwang44 February 22, 2024 14:27
@mindihx mindihx requested a review from rockleona February 29, 2024 13:20
@@ -79,12 +95,17 @@ msgid ""
"`except` or :keyword:`finally` clause, or a :keyword:`with` statement, is "
"used."
msgstr ""
"當引發一個新的例外而同時有另一個例外已經正在被處理,這個新例外的 :attr:`!"
Copy link
Collaborator

Choose a reason for hiding this comment

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

very nit:

Suggested change
"當引發一個新的例外而同時有另一個例外已經正在被處理,這個新例外的 :attr:`!"
"當引發一個新的例外而同時有另一個例外已經正在被處理時,這個新例外的 :attr:`!"

@mindihx mindihx force-pushed the library_exceptions branch from ac610ac to b083464 Compare March 12, 2024 13:02
@mindihx mindihx requested a review from ken71301 March 12, 2024 13:03
Copy link
Collaborator
@ken71301 ken71301 left a comment

Choose a reason for hiding this comment

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

LGTM~

@mattwang44 mattwang44 merged commit 860ec19 into python:3.12 Mar 13, 2024
@mindihx mindihx deleted the library_exceptions branch September 11, 2024 13:57
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.

4 participants
0