Open
Conversation
Complete translation of asyncio Call Graph Introspection documentation covering print_call_graph(), format_call_graph(), capture_call_graph() and low-level utility functions.
Contributor
|
Collaborator
Author
mattwang44
reviewed
Mar 14, 2026
| #: ../../library/asyncio-graph.rst:8 | ||
| msgid "Call Graph Introspection" | ||
| msgstr "" | ||
| msgstr "呼叫圖內省(Graph Introspection)" |
Collaborator
Collaborator
Author
|
thanks 那保留內省好了看起來是常見的翻法
|
mattwang44
reviewed
Mar 15, 2026
| #: ../../library/asyncio-graph.rst:8 | ||
| msgid "Call Graph Introspection" | ||
| msgstr "" | ||
| msgstr "呼叫圖內省(Graph Introspection)" |
Collaborator
There was a problem hiding this comment.
只少掉一字 call 怕誤導
Suggested change
| msgstr "呼叫圖內省(Graph Introspection)" | |
| msgstr "呼叫圖內省(Call Graph Introspection)" |
| "within a Python program or by external profilers and debuggers." | ||
| msgstr "" | ||
| "asyncio 擁有強大的執行期呼叫圖內省工具,可以追蹤執行中的\\ *協程*\\ 或\\ " | ||
| "*任務*\\ ,或是暫停的\\ *future*\\ 的完整呼叫圖。這些工具和底層機制可以在 " |
Collaborator
There was a problem hiding this comment.
Suggested change
| "*任務*\\ ,或是暫停的\\ *future*\\ 的完整呼叫圖。這些工具和底層機制可以在 " | |
| "*任務*,或是暫停的 *future* 的完整呼叫圖。這些工具和底層機制可以在 " |
| "*future*. These utilities and the underlying machinery can be used from " | ||
| "within a Python program or by external profilers and debuggers." | ||
| msgstr "" | ||
| "asyncio 擁有強大的執行期呼叫圖內省工具,可以追蹤執行中的\\ *協程*\\ 或\\ " |
Collaborator
There was a problem hiding this comment.
目前 runtime 都不翻
Suggested change
| "asyncio 擁有強大的執行期呼叫圖內省工具,可以追蹤執行中的\\ *協程*\\ 或\\ " | |
| "asyncio 擁有強大的 runtime 呼叫圖內省工具,可以追蹤執行中的\\ *協程*\\ 或\\ " |
| msgstr "" | ||
| "asyncio 擁有強大的執行期呼叫圖內省工具,可以追蹤執行中的\\ *協程*\\ 或\\ " | ||
| "*任務*\\ ,或是暫停的\\ *future*\\ 的完整呼叫圖。這些工具和底層機制可以在 " | ||
| "Python 程式內部使用,或被外部分析器和除錯器使用。" |
Collaborator
There was a problem hiding this comment.
Suggested change
| "Python 程式內部使用,或被外部分析器和除錯器使用。" | |
| "Python 程式內部使用,或被外部分析器和偵錯器使用。" |
| "*depth* argument can be used to skip the specified number of frames from top " | ||
| "of the stack." | ||
| msgstr "" | ||
| "如果在\\ *當前任務*\\ 上呼叫此函式,可以使用選擇性的僅限關鍵字引數 *depth* " |
Collaborator
There was a problem hiding this comment.
使用「目前」而非「當前」
Suggested change
| "如果在\\ *當前任務*\\ 上呼叫此函式,可以使用選擇性的僅限關鍵字引數 *depth* " | |
| "如果在\\ *目前任務*\\ 上呼叫此函式,可以使用選擇性的僅限關鍵字引數 *depth* " |
Comment on lines
+151
to
+152
| "類似於 :func:`print_call_graph`\\ ,但回傳一個字串。如果 *future* 為 " | ||
| "``None`` 且沒有當前任務,此函式回傳一個空字串。" |
Collaborator
There was a problem hiding this comment.
Suggested change
| "類似於 :func:`print_call_graph`\\ ,但回傳一個字串。如果 *future* 為 " | |
| "``None`` 且沒有當前任務,此函式回傳一個空字串。" | |
| "類似於 :func:`print_call_graph`,但回傳一個字串。如果 *future* 為 " | |
| "``None`` 且沒有目前任務,此函式回傳一個空字串。" |
| "Capture the async call graph for the current task or the " | ||
| "provided :class:`Task` or :class:`Future`." | ||
| msgstr "" | ||
| "捕獲當前任務或所提供的 :class:`Task` 或 :class:`Future` 的非同步呼叫圖。" |
Collaborator
There was a problem hiding this comment.
Suggested change
| "捕獲當前任務或所提供的 :class:`Task` 或 :class:`Future` 的非同步呼叫圖。" | |
| "捕獲目前任務或所提供的 :class:`Task` 或 :class:`Future` 的非同步呼叫圖。" |
Comment on lines
+167
to
+168
| "此函式接受一個選擇性的 *future* 引數。如果未傳入,將使用當前執行中的任務。" | ||
| "如果沒有當前任務,此函式回傳 ``None``\\ 。" |
Collaborator
There was a problem hiding this comment.
Suggested change
| "此函式接受一個選擇性的 *future* 引數。如果未傳入,將使用當前執行中的任務。" | |
| "如果沒有當前任務,此函式回傳 ``None``\\ 。" | |
| "此函式接受一個選擇性的 *future* 引數。如果未傳入,將使用目前執行中的任務。" | |
| "如果沒有目前任務,此函式回傳 ``None``。" |
Comment on lines
+219
to
+220
| "或 :class:`TaskGroup`\\ 。任何時候涉及使用低階 API(如 :meth:`Future." | ||
| "add_done_callback() <asyncio.Future.add_done_callback>`\\ )的中介 :class:" |
Collaborator
There was a problem hiding this comment.
Suggested change
| "或 :class:`TaskGroup`\\ 。任何時候涉及使用低階 API(如 :meth:`Future." | |
| "add_done_callback() <asyncio.Future.add_done_callback>`\\ )的中介 :class:" | |
| "或 :class:`TaskGroup`。任何時候涉及使用低階 API(如 :meth:`Future." | |
| "add_done_callback() <asyncio.Future.add_done_callback>`)的中介 :class:" |
| "This function prints entries starting from the top frame and going down " | ||
| "towards the invocation point." | ||
| msgstr "" | ||
| msgstr "此函式會從頂層框架開始印出條目,然後往下到呼叫點。" |
Collaborator
There was a problem hiding this comment.
ditto
這個 "frame" 出現比較早,原文附註應該在這邊
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.
Complete translation of asyncio Call Graph Introspection documentation covering print_call_graph(), format_call_graph(), capture_call_graph() and low-level utility functions.