Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 4 commits intopython:3.12frommindihx:library_exceptions
Mar 13, 2024

Conversation

mindihx
Copy link
Collaborator

issue:#806

@mindihx
Copy link
CollaboratorAuthor

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

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

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
CollaboratorAuthor

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 被拿掉了,再麻煩你幫忙看一下 🙏

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

@mattwang44mattwang44 self-requested a reviewFebruary 18, 2024 10:29
@mindihx
Copy link
CollaboratorAuthor

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

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

收到了~ 謝謝

@mattwang44mattwang44 requested review fromrockleona and removed request formattwang44February 22, 2024 14:27
@@ -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:`!"

Copy link
Collaborator

@ken71301ken71301 left a comment

Choose a reason for hiding this comment

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

LGTM~

@mattwang44mattwang44 merged commit860ec19 intopython:3.12Mar 13, 2024
@mindihxmindihx deleted the library_exceptions branchSeptember 11, 2024 13:57
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ken71301ken71301ken71301 approved these changes

@rockleonarockleonaAwaiting requested review from rockleona

@mattwang44mattwang44Awaiting requested review from mattwang44

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@mindihx@mattwang44@ken71301@rockleona

[8]ページ先頭

©2009-2025 Movatter.jp