77msgstr ""
88"Project-Id-Version : Python 3.14\n "
99"Report-Msgid-Bugs-To : \n "
10- "POT-Creation-Date : 2025-09-08 15:25+0800 \n "
10+ "POT-Creation-Date : 2026-07-09 00:32+0000 \n "
1111"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1212"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
1313"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -18,7 +18,8 @@ msgstr ""
1818"Content-Transfer-Encoding : 8bit\n "
1919
2020#: ../../library/asyncio-graph.rst:8
21- msgid "Call Graph Introspection"
21+ #, fuzzy
22+ msgid "Call graph introspection"
2223msgstr "呼叫圖內省(Call Graph Introspection)"
2324
2425#: ../../library/asyncio-graph.rst:10
@@ -32,40 +33,49 @@ msgid ""
3233"*future*. These utilities and the underlying machinery can be used from "
3334"within a Python program or by external profilers and debuggers."
3435msgstr ""
35- "asyncio 擁有強大的 runtime 呼叫圖內省工具,可以追蹤執行中的\\ *協程*\\ 或\\ "
36- "*任務*,或是暫停的 *future* 的完整呼叫圖。這些工具和底層機制可以在 "
37- "Python 程式內部使用,或被外部分析器和偵錯器使用。"
36+ "asyncio 擁有強大的 runtime 呼叫圖內省工具,可以追蹤執行中的\\ *協程*\\ 或\\ *"
37+ "任務*,或是暫停的 *future* 的完整呼叫圖。這些工具和底層機制可以在 Python 程式"
38+ "內部使用,或被外部分析器和偵錯器使用。"
39+
40+ #: ../../library/asyncio-graph.rst:22
41+ msgid ":ref:`asyncio-introspection-tools`"
42+ msgstr ""
3843
39- #: ../../library/asyncio-graph.rst:25
44+ #: ../../library/asyncio-graph.rst:23
45+ msgid ""
46+ "Command-line tools for inspecting tasks in another running Python process."
47+ msgstr ""
48+
49+ #: ../../library/asyncio-graph.rst:31
4050msgid ""
41- "Print the async call graph for the current task or the "
42- "provided :class: `Task` or :class:`Future`."
51+ "Print the async call graph for the current task or the provided :class: "
52+ "`Task` or :class:`Future`."
4353msgstr ""
4454"印出目前任務或所提供的 :class:`Task` 或 :class:`Future` 的非同步呼叫圖。"
4555
46- #: ../../library/asyncio-graph.rst:28
56+ #: ../../library/asyncio-graph.rst:34
4757msgid ""
4858"This function prints entries starting from the top frame and going down "
4959"towards the invocation point."
5060msgstr "此函式會從頂層 frame 開始印出條目,然後往下到呼叫點。"
5161
52- #: ../../library/asyncio-graph.rst:31
62+ #: ../../library/asyncio-graph.rst:37
5363msgid ""
5464"The function receives an optional *future* argument. If not passed, the "
5565"current running task will be used."
5666msgstr ""
5767"此函式接受一個選擇性的 *future* 引數。如果未傳入,將使用目前執行中的任務。"
5868
59- #: ../../library/asyncio-graph.rst:34 ../../library/asyncio-graph.rst:93
69+ #: ../../library/asyncio-graph.rst:40 ../../library/asyncio-graph.rst:99
6070msgid ""
6171"If the function is called on *the current task*, the optional keyword-only "
6272"*depth* argument can be used to skip the specified number of frames from top "
6373"of the stack."
6474msgstr ""
65- "如果在\\ *目前任務*\\ 上呼叫此函式,可以使用選擇性的僅限關鍵字引數 *depth* "
66- "來跳過堆疊頂端指定數量的 frame。"
75+ "如果在\\ *目前任務*\\ 上呼叫此函式,可以使用選擇性的僅限關鍵字引數 *depth* 來 "
76+ "跳過堆疊頂端指定數量的 frame。"
6777
68- #: ../../library/asyncio-graph.rst:38
78+ #: ../../library/asyncio-graph.rst:44
6979msgid ""
7080"If the optional keyword-only *limit* argument is provided, each call stack "
7181"in the resulting graph is truncated to include at most ``abs(limit)`` "
@@ -75,28 +85,27 @@ msgid ""
7585"``0``, the call stack is not printed at all, only \" awaited by\" information "
7686"is printed."
7787msgstr ""
78- "如果提供了選擇性的僅限關鍵字引數 *limit*,結果圖中的每個呼叫堆疊會被截斷 "
79- "為最多包含 ``abs(limit)`` 個條目。如果 *limit* 為正數,保留的條目是最接近呼 "
80- "叫點的 。如果 *limit* 為負數,保留最頂層的條目。如果 *limit* 被省略或為 "
81- "``None``, 則顯示所有條目。如果 *limit* 為 ``0``,則完全不印出呼叫堆 "
82- "疊,只印出「awaited by」資訊。"
88+ "如果提供了選擇性的僅限關鍵字引數 *limit*,結果圖中的每個呼叫堆疊會被截斷為最 "
89+ "多包含 ``abs(limit)`` 個條目。如果 *limit* 為正數,保留的條目是最接近呼叫點 "
90+ "的 。如果 *limit* 為負數,保留最頂層的條目。如果 *limit* 被省略或為 ``None``, "
91+ "則顯示所有條目。如果 *limit* 為 ``0``,則完全不印出呼叫堆疊,只印出「awaited "
92+ "by」資訊。"
8393
84- #: ../../library/asyncio-graph.rst:46
94+ #: ../../library/asyncio-graph.rst:52
8595msgid ""
86- "If *file* is omitted or ``None``, the function will print "
87- "to :data:`sys.stdout`."
88- msgstr ""
89- "如果 *file* 被省略或為 ``None``,此函式將印出到 :data:`sys.stdout`。"
96+ "If *file* is omitted or ``None``, the function will print to :data:`sys."
97+ "stdout`."
98+ msgstr "如果 *file* 被省略或為 ``None``,此函式將印出到 :data:`sys.stdout`。"
9099
91- #: ../../library/asyncio-graph.rst:49
100+ #: ../../library/asyncio-graph.rst:55
92101msgid "**Example:**"
93102msgstr "**範例:**"
94103
95- #: ../../library/asyncio-graph.rst:51
104+ #: ../../library/asyncio-graph.rst:57
96105msgid "The following Python code:"
97106msgstr "以下 Python 程式碼:"
98107
99- #: ../../library/asyncio-graph.rst:53
108+ #: ../../library/asyncio-graph.rst:59
100109msgid ""
101110"import asyncio\n"
102111"\n"
@@ -120,11 +129,11 @@ msgstr ""
120129"\n"
121130"asyncio.run(main())"
122131
123- #: ../../library/asyncio-graph.rst:66
132+ #: ../../library/asyncio-graph.rst:72
124133msgid "will print::"
125134msgstr "會印出: ::"
126135
127- #: ../../library/asyncio-graph.rst:68
136+ #: ../../library/asyncio-graph.rst:74
128137msgid ""
129138"* Task(name='test', id=0x1039f0fe0)\n"
130139"+ Call stack:\n"
@@ -144,98 +153,97 @@ msgstr ""
144153" | File 'taskgroups.py', line 107, in async TaskGroup.__aexit__()\n"
145154" | File 't2.py', line 7, in async main()"
146155
147- #: ../../library/asyncio-graph.rst:79
156+ #: ../../library/asyncio-graph.rst:85
148157msgid ""
149158"Like :func:`print_call_graph`, but returns a string. If *future* is ``None`` "
150159"and there's no current task, the function returns an empty string."
151160msgstr ""
152- "類似於 :func:`print_call_graph`,但回傳一個字串。如果 *future* 為 "
153- "``None`` 且沒有目前任務 ,此函式回傳一個空字串。"
161+ "類似於 :func:`print_call_graph`,但回傳一個字串。如果 *future* 為 ``None`` 且 "
162+ "沒有目前任務 ,此函式回傳一個空字串。"
154163
155- #: ../../library/asyncio-graph.rst:86
164+ #: ../../library/asyncio-graph.rst:92
156165msgid ""
157- "Capture the async call graph for the current task or the "
158- "provided :class: `Task` or :class:`Future`."
166+ "Capture the async call graph for the current task or the provided :class: "
167+ "`Task` or :class:`Future`."
159168msgstr ""
160169"捕獲目前任務或所提供的 :class:`Task` 或 :class:`Future` 的非同步呼叫圖。"
161170
162- #: ../../library/asyncio-graph.rst:89
171+ #: ../../library/asyncio-graph.rst:95
163172msgid ""
164173"The function receives an optional *future* argument. If not passed, the "
165174"current running task will be used. If there's no current task, the function "
166175"returns ``None``."
167176msgstr ""
168- "此函式接受一個選擇性的 *future* 引數。如果未傳入,將使用目前執行中的任務。"
169- "如果沒有目前任務 ,此函式回傳 ``None``。"
177+ "此函式接受一個選擇性的 *future* 引數。如果未傳入,將使用目前執行中的任務。如 "
178+ "果沒有目前任務 ,此函式回傳 ``None``。"
170179
171- #: ../../library/asyncio-graph.rst:97
180+ #: ../../library/asyncio-graph.rst:103
172181msgid "Returns a ``FutureCallGraph`` data class object:"
173182msgstr "會回傳一個 ``FutureCallGraph`` 資料類別物件:"
174183
175- #: ../../library/asyncio-graph.rst:99
184+ #: ../../library/asyncio-graph.rst:105
176185msgid "``FutureCallGraph(future, call_stack, awaited_by)``"
177186msgstr "``FutureCallGraph(future, call_stack, awaited_by)``"
178187
179- #: ../../library/asyncio-graph.rst:101
188+ #: ../../library/asyncio-graph.rst:107
180189msgid ""
181190"Where *future* is a reference to a :class:`Future` or a :class:`Task` (or "
182191"their subclasses.)"
183192msgstr ""
184- "其中 *future* 是對 :class:`Future` 或 :class:`Task`\\ (或它們的子類別)的 "
185- "參照 。"
193+ "其中 *future* 是對 :class:`Future` 或 :class:`Task`\\ (或它們的子類別)的參 "
194+ "照 。"
186195
187- #: ../../library/asyncio-graph.rst:104
196+ #: ../../library/asyncio-graph.rst:110
188197msgid "``call_stack`` is a tuple of ``FrameCallGraphEntry`` objects."
189198msgstr "``call_stack`` 是一個由 ``FrameCallGraphEntry`` 物件組成的元組。"
190199
191- #: ../../library/asyncio-graph.rst:106
200+ #: ../../library/asyncio-graph.rst:112
192201msgid "``awaited_by`` is a tuple of ``FutureCallGraph`` objects."
193202msgstr "``awaited_by`` 是一個由 ``FutureCallGraph`` 物件組成的元組。"
194203
195- #: ../../library/asyncio-graph.rst:108
204+ #: ../../library/asyncio-graph.rst:114
196205msgid "``FrameCallGraphEntry(frame)``"
197206msgstr "``FrameCallGraphEntry(frame)``"
198207
199- #: ../../library/asyncio-graph.rst:110
208+ #: ../../library/asyncio-graph.rst:116
200209msgid ""
201210"Where *frame* is a frame object of a regular Python function in the call "
202211"stack."
203212msgstr "其中 *frame* 是呼叫堆疊中常規 Python 函式的 frame 物件。"
204213
205- #: ../../library/asyncio-graph.rst:115
214+ #: ../../library/asyncio-graph.rst:121
206215msgid "Low level utility functions"
207216msgstr "低階工具函式"
208217
209- #: ../../library/asyncio-graph.rst:117
218+ #: ../../library/asyncio-graph.rst:123
210219msgid ""
211220"To introspect an async call graph asyncio requires cooperation from control "
212221"flow structures, such as :func:`shield` or :class:`TaskGroup`. Any time an "
213- "intermediate :class:`Future` object with low-level APIs "
214- "like :meth:`Future. add_done_callback() <asyncio.Future.add_done_callback>` "
215- "is involved, the following two functions should be used to inform asyncio "
216- "about how exactly such intermediate future objects are connected with the "
217- "tasks they wrap or control."
222+ "intermediate :class:`Future` object with low-level APIs like :meth:`Future. "
223+ "add_done_callback() <asyncio.Future.add_done_callback>` is involved, the "
224+ "following two functions should be used to inform asyncio about how exactly "
225+ "such intermediate future objects are connected with the tasks they wrap or "
226+ "control."
218227msgstr ""
219228"要內省非同步呼叫圖,asyncio 需要來自控制流程結構的協作,例如 :func:`shield` "
220229"或 :class:`TaskGroup`。任何時候涉及使用低階 API(如 :meth:`Future."
221230"add_done_callback() <asyncio.Future.add_done_callback>`)的中介 :class:"
222- "`Future` 物件時,應使用以下兩個函式來告知 asyncio 這些中介 future 物件如何 "
223- "與它們所包裝或控制的任務連接 。"
231+ "`Future` 物件時,應使用以下兩個函式來告知 asyncio 這些中介 future 物件如何與 "
232+ "它們所包裝或控制的任務連接 。"
224233
225- #: ../../library/asyncio-graph.rst:128
234+ #: ../../library/asyncio-graph.rst:134
226235msgid "Record that *future* is awaited on by *waiter*."
227236msgstr "記錄 *future* 正被 *waiter* 等待。"
228237
229- #: ../../library/asyncio-graph.rst:130 ../../library/asyncio-graph.rst:143
238+ #: ../../library/asyncio-graph.rst:136 ../../library/asyncio-graph.rst:149
230239msgid ""
231- "Both *future* and *waiter* must be instances of :class:`Future` "
232- "or :class:`Task` or their subclasses, otherwise the call would have no "
233- "effect."
240+ "Both *future* and *waiter* must be instances of :class:`Future` or :class:"
241+ "`Task` or their subclasses, otherwise the call would have no effect."
234242msgstr ""
235- "*future* 和 *waiter* 都必須是 :class:`Future` 或 :class:`Task` 或它們子類別 "
236- "的實例 ,否則呼叫將不會產生任何效果。"
243+ "*future* 和 *waiter* 都必須是 :class:`Future` 或 :class:`Task` 或它們子類別的 "
244+ "實例 ,否則呼叫將不會產生任何效果。"
237245
238- #: ../../library/asyncio-graph.rst:134
246+ #: ../../library/asyncio-graph.rst:140
239247msgid ""
240248"A call to ``future_add_to_awaited_by()`` must be followed by an eventual "
241249"call to the :func:`future_discard_from_awaited_by` function with the same "
@@ -244,6 +252,6 @@ msgstr ""
244252"對 ``future_add_to_awaited_by()`` 的呼叫必須最終跟隨一個對 :func:"
245253"`future_discard_from_awaited_by` 函式的呼叫,並使用相同的引數。"
246254
247- #: ../../library/asyncio-graph.rst:141
255+ #: ../../library/asyncio-graph.rst:147
248256msgid "Record that *future* is no longer awaited on by *waiter*."
249257msgstr "記錄 *future* 不再被 *waiter* 等待。"
0 commit comments