Skip to content

Commit 9123ecb

Browse files
mattwang44mindihx
andauthored
Apply suggestions from code review
Co-authored-by: mindihx <ymhuang.ymh@gmail.com>
1 parent 5b1902b commit 9123ecb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

library/sys.monitoring.po

+12-12
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ msgid ""
122122
"All IDs are treated the same by the VM with regard to events, but the "
123123
"following IDs are pre-defined to make co-operation of tools easier::"
124124
msgstr ""
125-
"對於事件,VM 對所有 ID 的處理都是相同的,但預先定義了以下 ID,以使工具間的協"
126-
"作更容易:"
125+
"對於事件,虛擬機器對所有 ID 的處理都是相同的,但預先定義了以下 ID,以使工具間的協"
126+
"作更容易: ::"
127127

128128
#: ../../library/sys.monitoring.rst:73
129129
msgid ""
@@ -157,21 +157,21 @@ msgstr "Python 程式碼中的呼叫(事件發生在呼叫之前)。"
157157
msgid ""
158158
"An exception raised from any callable, except for Python functions (event "
159159
"occurs after the exit)."
160-
msgstr "從任何可呼叫物件引發的例外,除 Python 函式外(在退出後發生的事件)。"
160+
msgstr "從任何可呼叫物件引發的例外,除 Python 函式外(事件發生在退出之後)。"
161161

162162
#: ../../library/sys.monitoring.rst:98
163163
msgid ""
164164
"Return from any callable, except for Python functions (event occurs after "
165165
"the return)."
166-
msgstr "從任何可呼叫函式回傳,除 Python 函式外(在回傳後發生的事件)。"
166+
msgstr "從任何可呼叫函式回傳,除 Python 函式外(事件發生在回傳之後)。"
167167

168168
#: ../../library/sys.monitoring.rst:102
169169
msgid "An exception is handled."
170170
msgstr "一個例外被處理。"
171171

172172
#: ../../library/sys.monitoring.rst:106
173173
msgid "A VM instruction is about to be executed."
174-
msgstr "即將被執行的 VM 指令。"
174+
msgstr "VM 指令即將被執行。"
175175

176176
#: ../../library/sys.monitoring.rst:110
177177
msgid "An unconditional jump in the control flow graph is made."
@@ -223,13 +223,13 @@ msgid ""
223223
"An exception is raised, except those that cause a :monitoring-event:"
224224
"`STOP_ITERATION` event."
225225
msgstr ""
226-
"例外會被引發,除了那些會導致 :monitoring-event:`STOP_ITERATION` 的事件外。"
226+
"例外被引發,除了那些會導致 :monitoring-event:`STOP_ITERATION` 的事件外。"
227227

228228
#: ../../library/sys.monitoring.rst:146
229229
msgid ""
230230
"An exception is re-raised, for example at the end of a :keyword:`finally` "
231231
"block."
232-
msgstr "例外會被重新引發 (re-raise),例如在 :keyword:`finally` 區塊的最後。"
232+
msgstr "例外被重新引發 (re-raise),例如在 :keyword:`finally` 區塊的最後。"
233233

234234
#: ../../library/sys.monitoring.rst:150
235235
msgid ""
@@ -454,7 +454,7 @@ msgstr "預設沒有有效事件。"
454454

455455
#: ../../library/sys.monitoring.rst:256
456456
msgid "Per code object events"
457-
msgstr "每個程式碼物件事件"
457+
msgstr "各別程式碼物件事件"
458458

459459
#: ../../library/sys.monitoring.rst:258
460460
msgid ""
@@ -528,11 +528,11 @@ msgstr "註冊回呼函式"
528528

529529
#: ../../library/sys.monitoring.rst:305
530530
msgid "To register a callable for events call"
531-
msgstr "註冊事件呼叫的可呼叫物件"
531+
msgstr "用來註冊對事件呼叫的可呼叫物件"
532532

533533
#: ../../library/sys.monitoring.rst:309
534534
msgid "Registers the callable *func* for the *event* with the given *tool_id*"
535-
msgstr "使用給定的 *tool_id* 來註冊 *event* 的可呼叫物件 *func*"
535+
msgstr "使用給定的 *tool_id* 來註冊對 *event* 的可呼叫物件 *func*"
536536

537537
#: ../../library/sys.monitoring.rst:311
538538
msgid ""
@@ -548,8 +548,8 @@ msgid ""
548548
"Functions can be unregistered by calling ``sys.monitoring."
549549
"register_callback(tool_id, event, None)``."
550550
msgstr ""
551-
"可以透過呼叫 ``sys.monitoring.register_callback(tool_id, event, None)`` 來註"
552-
"銷函式。"
551+
"可以透過呼叫 ``sys.monitoring.register_callback(tool_id, event, None)`` 來取"
552+
"消註冊函式。"
553553

554554
#: ../../library/sys.monitoring.rst:319
555555
msgid "Callback functions can be registered and unregistered at any time."

0 commit comments

Comments
 (0)