Skip to content

Commit 993a652

Browse files
sync with cpython a45d3fd8
1 parent 7271184 commit 993a652

File tree

2 files changed

+74
-66
lines changed

2 files changed

+74
-66
lines changed

library/sys.monitoring.po

Lines changed: 70 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.13\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-04-25 00:15+0000\n"
9+
"POT-Creation-Date: 2025-07-18 00:17+0000\n"
1010
"PO-Revision-Date: 2024-10-21 17:51+0800\n"
1111
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -27,8 +27,8 @@ msgid ""
2727
"``import sys`` and then use ``sys.monitoring``."
2828
msgstr ""
2929
":mod:`sys.monitoring` 是 :mod:`sys` 模組內的一個命名空間,不是一個獨立的模"
30-
"組,所以不需要 ``import sys.monitoring``,只需 ``import sys`` 然後使用 "
31-
"``sys.monitoring``。"
30+
"組,所以不需要 ``import sys.monitoring``,只需 ``import sys`` 然後使用 ``sys."
31+
"monitoring``。"
3232

3333
#: ../../library/sys.monitoring.rst:19
3434
msgid ""
@@ -221,8 +221,8 @@ msgstr ""
221221

222222
#: ../../library/sys.monitoring.rst:142
223223
msgid ""
224-
"An exception is raised, except those that cause a :monitoring-"
225-
"event:`STOP_ITERATION` event."
224+
"An exception is raised, except those that cause a :monitoring-event:"
225+
"`STOP_ITERATION` event."
226226
msgstr ""
227227
"例外被引發,除了那些會導致 :monitoring-event:`STOP_ITERATION` 的事件外。"
228228

@@ -347,14 +347,14 @@ msgstr ":monitoring-event:`C_RETURN`"
347347
#: ../../library/sys.monitoring.rst:199
348348
msgid ""
349349
"The :monitoring-event:`C_RETURN` and :monitoring-event:`C_RAISE` events are "
350-
"controlled by the :monitoring-event:`CALL` event. :monitoring-"
351-
"event:`C_RETURN` and :monitoring-event:`C_RAISE` events will only be seen if "
352-
"the corresponding :monitoring-event:`CALL` event is being monitored."
350+
"controlled by the :monitoring-event:`CALL` event. :monitoring-event:"
351+
"`C_RETURN` and :monitoring-event:`C_RAISE` events will only be seen if the "
352+
"corresponding :monitoring-event:`CALL` event is being monitored."
353353
msgstr ""
354-
":monitoring-event:`C_RETURN` 和 :monitoring-event:`C_RAISE` 事件"
355-
"由 :monitoring-event:`CALL` 事件控制。只有當對應的 :monitoring-event:`CALL` "
356-
"事件受到監控時,才會看到 :monitoring-event:`C_RETURN` 和 :monitoring-"
357-
"event:`C_RAISE` 事件。"
354+
":monitoring-event:`C_RETURN` 和 :monitoring-event:`C_RAISE` 事件由 :"
355+
"monitoring-event:`CALL` 事件控制。只有當對應的 :monitoring-event:`CALL` 事件"
356+
"受到監控時,才會看到 :monitoring-event:`C_RETURN` 和 :monitoring-event:"
357+
"`C_RAISE` 事件。"
358358

359359
#: ../../library/sys.monitoring.rst:205
360360
msgid "Other events"
@@ -392,8 +392,8 @@ msgstr "STOP_ITERATION 事件"
392392

393393
#: ../../library/sys.monitoring.rst:221
394394
msgid ""
395-
":pep:`PEP 380 <380#use-of-stopiteration-to-return-values>` specifies that "
396-
"a :exc:`StopIteration` exception is raised when returning a value from a "
395+
":pep:`PEP 380 <380#use-of-stopiteration-to-return-values>` specifies that a :"
396+
"exc:`StopIteration` exception is raised when returning a value from a "
397397
"generator or coroutine. However, this is a very inefficient way to return a "
398398
"value, so some Python implementations, notably CPython 3.12+, do not raise "
399399
"an exception unless it would be visible to other code."
@@ -443,11 +443,11 @@ msgstr "回傳代表所有有效事件的 ``int``。"
443443

444444
#: ../../library/sys.monitoring.rst:252
445445
msgid ""
446-
"Activates all events which are set in *event_set*. Raises "
447-
"a :exc:`ValueError` if *tool_id* is not in use."
446+
"Activates all events which are set in *event_set*. Raises a :exc:"
447+
"`ValueError` if *tool_id* is not in use."
448448
msgstr ""
449-
"啟動 *event_set* 中設定的所有事件。如果 *tool_id* 並未正在被使用,則引"
450-
"發 :exc:`ValueError`。"
449+
"啟動 *event_set* 中設定的所有事件。如果 *tool_id* 並未正在被使用,則引發 :"
450+
"exc:`ValueError`。"
451451

452452
#: ../../library/sys.monitoring.rst:255
453453
msgid "No events are active by default."
@@ -464,9 +464,9 @@ msgid ""
464464
"accept a look-alike object from functions which are not defined in Python "
465465
"(see :ref:`c-api-monitoring`)."
466466
msgstr ""
467-
"事件還可以基於各別程式碼物件進行控制。下面定義的、"
468-
"受 :class:`types.CodeType` 的函式應該準備好接受來自 Python 中未定義函式的類似"
469-
"物件(請參閱 :ref:`c-api-monitoring`)。"
467+
"事件還可以基於各別程式碼物件進行控制。下面定義的、接受 :class:`types."
468+
"CodeType` 的函式應該準備好接受來自 Python 中未定義函式的類似物件(請參閱 :"
469+
"ref:`c-api-monitoring`)。"
470470

471471
#: ../../library/sys.monitoring.rst:267
472472
msgid "Returns all the local events for *code*"
@@ -500,10 +500,9 @@ msgstr "可以從回呼函式回傳的特殊值,以停用目前程式碼位置
500500

501501
#: ../../library/sys.monitoring.rst:287
502502
msgid ""
503-
"Local events can be disabled for a specific code location by "
504-
"returning :data:`sys.monitoring.DISABLE` from a callback function. This does "
505-
"not change which events are set, or any other code locations for the same "
506-
"event."
503+
"Local events can be disabled for a specific code location by returning :data:"
504+
"`sys.monitoring.DISABLE` from a callback function. This does not change "
505+
"which events are set, or any other code locations for the same event."
507506
msgstr ""
508507
"可透過回呼函式回傳 :data:`sys.monitoring.DISABLE` 來停用特定程式碼位置的區域"
509508
"事件。這不會改變被設定的事件,或相同事件的任何其他程式碼位置。"
@@ -545,35 +544,38 @@ msgstr ""
545544
"如果給定的 *tool_id* 和 *event* 已經註冊了另一個回呼,則會取消註冊並回傳。否"
546545
"則 :func:`register_callback` 會回傳 ``None``。"
547546

548-
#: ../../library/sys.monitoring.rst:318
547+
#: ../../library/sys.monitoring.rst:317
548+
#, fuzzy
549549
msgid ""
550-
"Functions can be unregistered by calling "
551-
"``sys.monitoring.register_callback(tool_id, event, None)``."
550+
"Raises an :ref:`auditing event <auditing>` ``sys.monitoring."
551+
"register_callback`` with argument ``func``."
552552
msgstr ""
553553
"可以透過呼叫 ``sys.monitoring.register_callback(tool_id, event, None)`` 來取"
554554
"消註冊函式。"
555555

556-
#: ../../library/sys.monitoring.rst:321
556+
#: ../../library/sys.monitoring.rst:319
557+
msgid ""
558+
"Functions can be unregistered by calling ``sys.monitoring."
559+
"register_callback(tool_id, event, None)``."
560+
msgstr ""
561+
"可以透過呼叫 ``sys.monitoring.register_callback(tool_id, event, None)`` 來取"
562+
"消註冊函式。"
563+
564+
#: ../../library/sys.monitoring.rst:322
557565
msgid "Callback functions can be registered and unregistered at any time."
558566
msgstr "回呼函式可以隨時被註冊和取消註冊。"
559567

560-
#: ../../library/sys.monitoring.rst:323
561-
msgid ""
562-
"Registering or unregistering a callback function will generate "
563-
"a :func:`sys.audit` event."
564-
msgstr "註冊或取消註冊回呼函式將產生 :func:`sys.audit` 事件。"
565-
566-
#: ../../library/sys.monitoring.rst:327
568+
#: ../../library/sys.monitoring.rst:326
567569
msgid "Callback function arguments"
568570
msgstr "回呼函式引數"
569571

570-
#: ../../library/sys.monitoring.rst:331
572+
#: ../../library/sys.monitoring.rst:330
571573
msgid ""
572574
"A special value that is passed to a callback function to indicate that there "
573575
"are no arguments to the call."
574576
msgstr "傳遞給回呼函式的特殊值,表示該呼叫沒有引數。"
575577

576-
#: ../../library/sys.monitoring.rst:334
578+
#: ../../library/sys.monitoring.rst:333
577579
msgid ""
578580
"When an active event occurs, the registered callback function is called. "
579581
"Different events will provide the callback function with different "
@@ -582,86 +584,86 @@ msgstr ""
582584
"當有效事件發生時,已註冊的回呼函式會被呼叫。不同的事件會為回呼函式提供不同的"
583585
"引數,如下所示:"
584586

585-
#: ../../library/sys.monitoring.rst:337
587+
#: ../../library/sys.monitoring.rst:336
586588
msgid ":monitoring-event:`PY_START` and :monitoring-event:`PY_RESUME`::"
587589
msgstr ":monitoring-event:`PY_START` 和 :monitoring-event:`PY_RESUME`: ::"
588590

589-
#: ../../library/sys.monitoring.rst:339 ../../library/sys.monitoring.rst:370
591+
#: ../../library/sys.monitoring.rst:338 ../../library/sys.monitoring.rst:369
590592
msgid "func(code: CodeType, instruction_offset: int) -> DISABLE | Any"
591593
msgstr "func(code: CodeType, instruction_offset: int) -> DISABLE | Any"
592594

593-
#: ../../library/sys.monitoring.rst:341
595+
#: ../../library/sys.monitoring.rst:340
594596
msgid ":monitoring-event:`PY_RETURN` and :monitoring-event:`PY_YIELD`::"
595597
msgstr ":monitoring-event:`PY_RETURN` 和 :monitoring-event:`PY_YIELD`: ::"
596598

597-
#: ../../library/sys.monitoring.rst:343
599+
#: ../../library/sys.monitoring.rst:342
598600
msgid ""
599601
"func(code: CodeType, instruction_offset: int, retval: object) -> DISABLE | "
600602
"Any"
601603
msgstr ""
602604
"func(code: CodeType, instruction_offset: int, retval: object) -> DISABLE | "
603605
"Any"
604606

605-
#: ../../library/sys.monitoring.rst:345
607+
#: ../../library/sys.monitoring.rst:344
606608
msgid ""
607-
":monitoring-event:`CALL`, :monitoring-event:`C_RAISE` and :monitoring-"
608-
"event:`C_RETURN`::"
609+
":monitoring-event:`CALL`, :monitoring-event:`C_RAISE` and :monitoring-event:"
610+
"`C_RETURN`::"
609611
msgstr ""
610-
":monitoring-event:`CALL`、:monitoring-event:`C_RAISE` 和 :monitoring-"
611-
"event:`C_RETURN`: ::"
612+
":monitoring-event:`CALL`、:monitoring-event:`C_RAISE` 和 :monitoring-event:"
613+
"`C_RETURN`: ::"
612614

613-
#: ../../library/sys.monitoring.rst:347
615+
#: ../../library/sys.monitoring.rst:346
614616
msgid ""
615617
"func(code: CodeType, instruction_offset: int, callable: object, arg0: object "
616618
"| MISSING) -> DISABLE | Any"
617619
msgstr ""
618620
"func(code: CodeType, instruction_offset: int, callable: object, arg0: object "
619621
"| MISSING) -> DISABLE | Any"
620622

621-
#: ../../library/sys.monitoring.rst:349
623+
#: ../../library/sys.monitoring.rst:348
622624
msgid ""
623625
"If there are no arguments, *arg0* is set to :data:`sys.monitoring.MISSING`."
624626
msgstr "如果沒有引數,*arg0* 將被設定為 :data:`sys.monitoring.MISSING`。"
625627

626-
#: ../../library/sys.monitoring.rst:351
628+
#: ../../library/sys.monitoring.rst:350
627629
msgid ""
628-
":monitoring-event:`RAISE`, :monitoring-event:`RERAISE`, :monitoring-"
629-
"event:`EXCEPTION_HANDLED`, :monitoring-event:`PY_UNWIND`, :monitoring-"
630-
"event:`PY_THROW` and :monitoring-event:`STOP_ITERATION`::"
630+
":monitoring-event:`RAISE`, :monitoring-event:`RERAISE`, :monitoring-event:"
631+
"`EXCEPTION_HANDLED`, :monitoring-event:`PY_UNWIND`, :monitoring-event:"
632+
"`PY_THROW` and :monitoring-event:`STOP_ITERATION`::"
631633
msgstr ""
632-
":monitoring-event:`RAISE`、:monitoring-event:`RERAISE`、:monitoring-"
633-
"event:`EXCEPTION_HANDLED`、:monitoring-event:`PY_UNWIND`、:monitoring-"
634-
"event:`PY_THROW` 和 :monitoring-event:`STOP_ITERATION`: ::"
634+
":monitoring-event:`RAISE`、:monitoring-event:`RERAISE`、:monitoring-event:"
635+
"`EXCEPTION_HANDLED`、:monitoring-event:`PY_UNWIND`、:monitoring-event:"
636+
"`PY_THROW` 和 :monitoring-event:`STOP_ITERATION`: ::"
635637

636-
#: ../../library/sys.monitoring.rst:354
638+
#: ../../library/sys.monitoring.rst:353
637639
msgid ""
638640
"func(code: CodeType, instruction_offset: int, exception: BaseException) -> "
639641
"DISABLE | Any"
640642
msgstr ""
641643
"func(code: CodeType, instruction_offset: int, exception: BaseException) -> "
642644
"DISABLE | Any"
643645

644-
#: ../../library/sys.monitoring.rst:356
646+
#: ../../library/sys.monitoring.rst:355
645647
msgid ":monitoring-event:`LINE`::"
646648
msgstr ":monitoring-event:`LINE`: ::"
647649

648-
#: ../../library/sys.monitoring.rst:358
650+
#: ../../library/sys.monitoring.rst:357
649651
msgid "func(code: CodeType, line_number: int) -> DISABLE | Any"
650652
msgstr "func(code: CodeType, line_number: int) -> DISABLE | Any"
651653

652-
#: ../../library/sys.monitoring.rst:360
654+
#: ../../library/sys.monitoring.rst:359
653655
msgid ":monitoring-event:`BRANCH` and :monitoring-event:`JUMP`::"
654656
msgstr ":monitoring-event:`BRANCH` 和 :monitoring-event:`JUMP`: ::"
655657

656-
#: ../../library/sys.monitoring.rst:362
658+
#: ../../library/sys.monitoring.rst:361
657659
msgid ""
658660
"func(code: CodeType, instruction_offset: int, destination_offset: int) -> "
659661
"DISABLE | Any"
660662
msgstr ""
661663
"func(code: CodeType, instruction_offset: int, destination_offset: int) -> "
662664
"DISABLE | Any"
663665

664-
#: ../../library/sys.monitoring.rst:364
666+
#: ../../library/sys.monitoring.rst:363
665667
msgid ""
666668
"Note that the *destination_offset* is where the code will next execute. For "
667669
"an untaken branch this will be the offset of the instruction following the "
@@ -670,6 +672,11 @@ msgstr ""
670672
"請注意,*destination_offset* 是程式碼接下來要執行的地方。對於未採用的分支,這"
671673
"將是該分支之後的指令的偏移量。"
672674

673-
#: ../../library/sys.monitoring.rst:368
675+
#: ../../library/sys.monitoring.rst:367
674676
msgid ":monitoring-event:`INSTRUCTION`::"
675677
msgstr ":monitoring-event:`INSTRUCTION`: ::"
678+
679+
#~ msgid ""
680+
#~ "Registering or unregistering a callback function will generate a :func:"
681+
#~ "`sys.audit` event."
682+
#~ msgstr "註冊或取消註冊回呼函式將產生 :func:`sys.audit` 事件。"

library/venv.po

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.13\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-07-12 00:16+0000\n"
11+
"POT-Creation-Date: 2025-07-18 00:17+0000\n"
1212
"PO-Revision-Date: 2025-05-23 10:20+0800\n"
1313
"Last-Translator: Dr-XYZ <dr.xyz.tw@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -29,13 +29,14 @@ msgid "**Source code:** :source:`Lib/venv/`"
2929
msgstr "**原始碼:**\\ :source:`Lib/venv/`"
3030

3131
#: ../../library/venv.rst:21
32+
#, fuzzy
3233
msgid ""
3334
"The :mod:`!venv` module supports creating lightweight \"virtual "
3435
"environments\", each with their own independent set of Python packages "
3536
"installed in their :mod:`site` directories. A virtual environment is created "
3637
"on top of an existing Python installation, known as the virtual "
37-
"environment's \"base\" Python, and may optionally be isolated from the "
38-
"packages in the base environment, so only those explicitly installed in the "
38+
"environment's \"base\" Python, and by default is isolated from the packages "
39+
"in the base environment, so that only those explicitly installed in the "
3940
"virtual environment are available."
4041
msgstr ""
4142
":mod:`!venv` 模組支援建立輕量級的「虛擬環境」,每個虛擬環境都有獨立安裝在其 :"

0 commit comments

Comments
 (0)