6
6
msgstr ""
7
7
"Project-Id-Version :Python 3.13\n "
8
8
"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 "
10
10
"PO-Revision-Date :2024-10-21 17:51+0800\n "
11
11
"Last-Translator :Matt Wang <mattwang44@gmail.com>\n "
12
12
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -27,8 +27,8 @@ msgid ""
27
27
"``import sys`` and then use ``sys.monitoring``."
28
28
msgstr ""
29
29
":mod:`sys.monitoring` 是 :mod:`sys` 模組內的一個命名空間,不是一個獨立的模"
30
- "組,所以不需要 ``import sys.monitoring``,只需 ``import sys`` 然後使用 "
31
- "``sys. monitoring``。"
30
+ "組,所以不需要 ``import sys.monitoring``,只需 ``import sys`` 然後使用``sys. "
31
+ "monitoring``。"
32
32
33
33
#: ../../library/sys.monitoring.rst:19
34
34
msgid ""
@@ -221,8 +221,8 @@ msgstr ""
221
221
222
222
#: ../../library/sys.monitoring.rst:142
223
223
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."
226
226
msgstr ""
227
227
"例外被引發,除了那些會導致 :monitoring-event:`STOP_ITERATION` 的事件外。"
228
228
@@ -347,14 +347,14 @@ msgstr ":monitoring-event:`C_RETURN`"
347
347
#: ../../library/sys.monitoring.rst:199
348
348
msgid ""
349
349
"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."
353
353
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` 事件。"
358
358
359
359
#: ../../library/sys.monitoring.rst:205
360
360
msgid "Other events"
@@ -392,8 +392,8 @@ msgstr "STOP_ITERATION 事件"
392
392
393
393
#: ../../library/sys.monitoring.rst:221
394
394
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 thata : "
396
+ "exc:`StopIteration` exception is raised when returning a value from a "
397
397
"generator or coroutine. However, this is a very inefficient way to return a "
398
398
"value, so some Python implementations, notably CPython 3.12+, do not raise "
399
399
"an exception unless it would be visible to other code."
@@ -443,11 +443,11 @@ msgstr "回傳代表所有有效事件的 ``int``。"
443
443
444
444
#: ../../library/sys.monitoring.rst:252
445
445
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*. Raisesa :exc: "
447
+ "`ValueError` if *tool_id* is not in use."
448
448
msgstr ""
449
- "啟動 *event_set* 中設定的所有事件。如果 *tool_id* 並未正在被使用,則引 "
450
- "發 : exc:`ValueError`。"
449
+ "啟動 *event_set* 中設定的所有事件。如果 *tool_id* 並未正在被使用,則引發 : "
450
+ "exc:`ValueError`。"
451
451
452
452
#: ../../library/sys.monitoring.rst:255
453
453
msgid "No events are active by default."
@@ -464,9 +464,9 @@ msgid ""
464
464
"accept a look-alike object from functions which are not defined in Python "
465
465
"(see :ref:`c-api-monitoring`)."
466
466
msgstr ""
467
- "事件還可以基於各別程式碼物件進行控制。下面定義的、接 "
468
- "受 :class:`types. CodeType` 的函式應該準備好接受來自 Python中未定義函式的類似 "
469
- "物件(請參閱 : ref:`c-api-monitoring`)。"
467
+ "事件還可以基於各別程式碼物件進行控制。下面定義的、接受 :class:`types. "
468
+ "CodeType` 的函式應該準備好接受來自 Python中未定義函式的類似物件(請參閱 : "
469
+ "ref:`c-api-monitoring`)。"
470
470
471
471
#: ../../library/sys.monitoring.rst:267
472
472
msgid "Returns all the local events for *code*"
@@ -500,10 +500,9 @@ msgstr "可以從回呼函式回傳的特殊值,以停用目前程式碼位置
500
500
501
501
#: ../../library/sys.monitoring.rst:287
502
502
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."
507
506
msgstr ""
508
507
"可透過回呼函式回傳 :data:`sys.monitoring.DISABLE` 來停用特定程式碼位置的區域"
509
508
"事件。這不會改變被設定的事件,或相同事件的任何其他程式碼位置。"
@@ -545,35 +544,38 @@ msgstr ""
545
544
"如果給定的 *tool_id* 和 *event* 已經註冊了另一個回呼,則會取消註冊並回傳。否"
546
545
"則 :func:`register_callback` 會回傳 ``None``。"
547
546
548
- #: ../../library/sys.monitoring.rst:318
547
+ #: ../../library/sys.monitoring.rst:317
548
+ #, fuzzy
549
549
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 ``."
552
552
msgstr ""
553
553
"可以透過呼叫 ``sys.monitoring.register_callback(tool_id, event, None)`` 來取"
554
554
"消註冊函式。"
555
555
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
557
565
msgid "Callback functions can be registered and unregistered at any time."
558
566
msgstr "回呼函式可以隨時被註冊和取消註冊。"
559
567
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
567
569
msgid "Callback function arguments"
568
570
msgstr "回呼函式引數"
569
571
570
- #: ../../library/sys.monitoring.rst:331
572
+ #: ../../library/sys.monitoring.rst:330
571
573
msgid ""
572
574
"A special value that is passed to a callback function to indicate that there "
573
575
"are no arguments to the call."
574
576
msgstr "傳遞給回呼函式的特殊值,表示該呼叫沒有引數。"
575
577
576
- #: ../../library/sys.monitoring.rst:334
578
+ #: ../../library/sys.monitoring.rst:333
577
579
msgid ""
578
580
"When an active event occurs, the registered callback function is called. "
579
581
"Different events will provide the callback function with different "
@@ -582,86 +584,86 @@ msgstr ""
582
584
"當有效事件發生時,已註冊的回呼函式會被呼叫。不同的事件會為回呼函式提供不同的"
583
585
"引數,如下所示:"
584
586
585
- #: ../../library/sys.monitoring.rst:337
587
+ #: ../../library/sys.monitoring.rst:336
586
588
msgid ":monitoring-event:`PY_START` and :monitoring-event:`PY_RESUME`::"
587
589
msgstr ":monitoring-event:`PY_START` 和 :monitoring-event:`PY_RESUME`: ::"
588
590
589
- #: ../../library/sys.monitoring.rst:339 ../../library/sys.monitoring.rst:370
591
+ #: ../../library/sys.monitoring.rst:338 ../../library/sys.monitoring.rst:369
590
592
msgid "func(code: CodeType, instruction_offset: int) -> DISABLE | Any"
591
593
msgstr "func(code: CodeType, instruction_offset: int) -> DISABLE | Any"
592
594
593
- #: ../../library/sys.monitoring.rst:341
595
+ #: ../../library/sys.monitoring.rst:340
594
596
msgid ":monitoring-event:`PY_RETURN` and :monitoring-event:`PY_YIELD`::"
595
597
msgstr ":monitoring-event:`PY_RETURN` 和 :monitoring-event:`PY_YIELD`: ::"
596
598
597
- #: ../../library/sys.monitoring.rst:343
599
+ #: ../../library/sys.monitoring.rst:342
598
600
msgid ""
599
601
"func(code: CodeType, instruction_offset: int, retval: object) -> DISABLE | "
600
602
"Any"
601
603
msgstr ""
602
604
"func(code: CodeType, instruction_offset: int, retval: object) -> DISABLE | "
603
605
"Any"
604
606
605
- #: ../../library/sys.monitoring.rst:345
607
+ #: ../../library/sys.monitoring.rst:344
606
608
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`::"
609
611
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`: ::"
612
614
613
- #: ../../library/sys.monitoring.rst:347
615
+ #: ../../library/sys.monitoring.rst:346
614
616
msgid ""
615
617
"func(code: CodeType, instruction_offset: int, callable: object, arg0: object "
616
618
"| MISSING) -> DISABLE | Any"
617
619
msgstr ""
618
620
"func(code: CodeType, instruction_offset: int, callable: object, arg0: object "
619
621
"| MISSING) -> DISABLE | Any"
620
622
621
- #: ../../library/sys.monitoring.rst:349
623
+ #: ../../library/sys.monitoring.rst:348
622
624
msgid ""
623
625
"If there are no arguments, *arg0* is set to :data:`sys.monitoring.MISSING`."
624
626
msgstr "如果沒有引數,*arg0* 將被設定為 :data:`sys.monitoring.MISSING`。"
625
627
626
- #: ../../library/sys.monitoring.rst:351
628
+ #: ../../library/sys.monitoring.rst:350
627
629
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`::"
631
633
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`: ::"
635
637
636
- #: ../../library/sys.monitoring.rst:354
638
+ #: ../../library/sys.monitoring.rst:353
637
639
msgid ""
638
640
"func(code: CodeType, instruction_offset: int, exception: BaseException) -> "
639
641
"DISABLE | Any"
640
642
msgstr ""
641
643
"func(code: CodeType, instruction_offset: int, exception: BaseException) -> "
642
644
"DISABLE | Any"
643
645
644
- #: ../../library/sys.monitoring.rst:356
646
+ #: ../../library/sys.monitoring.rst:355
645
647
msgid ":monitoring-event:`LINE`::"
646
648
msgstr ":monitoring-event:`LINE`: ::"
647
649
648
- #: ../../library/sys.monitoring.rst:358
650
+ #: ../../library/sys.monitoring.rst:357
649
651
msgid "func(code: CodeType, line_number: int) -> DISABLE | Any"
650
652
msgstr "func(code: CodeType, line_number: int) -> DISABLE | Any"
651
653
652
- #: ../../library/sys.monitoring.rst:360
654
+ #: ../../library/sys.monitoring.rst:359
653
655
msgid ":monitoring-event:`BRANCH` and :monitoring-event:`JUMP`::"
654
656
msgstr ":monitoring-event:`BRANCH` 和 :monitoring-event:`JUMP`: ::"
655
657
656
- #: ../../library/sys.monitoring.rst:362
658
+ #: ../../library/sys.monitoring.rst:361
657
659
msgid ""
658
660
"func(code: CodeType, instruction_offset: int, destination_offset: int) -> "
659
661
"DISABLE | Any"
660
662
msgstr ""
661
663
"func(code: CodeType, instruction_offset: int, destination_offset: int) -> "
662
664
"DISABLE | Any"
663
665
664
- #: ../../library/sys.monitoring.rst:364
666
+ #: ../../library/sys.monitoring.rst:363
665
667
msgid ""
666
668
"Note that the *destination_offset* is where the code will next execute. For "
667
669
"an untaken branch this will be the offset of the instruction following the "
@@ -670,6 +672,11 @@ msgstr ""
670
672
"請注意,*destination_offset* 是程式碼接下來要執行的地方。對於未採用的分支,這"
671
673
"將是該分支之後的指令的偏移量。"
672
674
673
- #: ../../library/sys.monitoring.rst:368
675
+ #: ../../library/sys.monitoring.rst:367
674
676
msgid ":monitoring-event:`INSTRUCTION`::"
675
677
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` 事件。"