Skip to content

Commit 64855d5

Browse files
sync with cpython 80117dd4
1 parent 867e64a commit 64855d5

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

library/exceptions.po

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.11\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-06-29 00:19+0000\n"
11+
"POT-Creation-Date: 2023-07-06 16:53+0000\n"
1212
"PO-Revision-Date: 2018-05-23 16:01+0000\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -990,11 +990,11 @@ msgstr ""
990990
msgid "Base class for warnings related to resource usage."
991991
msgstr ""
992992

993-
#: ../../library/exceptions.rst:875
993+
#: ../../library/exceptions.rst:877
994994
msgid "Exception groups"
995995
msgstr ""
996996

997-
#: ../../library/exceptions.rst:877
997+
#: ../../library/exceptions.rst:879
998998
msgid ""
999999
"The following are used when it is necessary to raise multiple unrelated "
10001000
"exceptions. They are part of the exception hierarchy so they can be handled "
@@ -1003,7 +1003,7 @@ msgid ""
10031003
"based on the types of the contained exceptions."
10041004
msgstr ""
10051005

1006-
#: ../../library/exceptions.rst:886
1006+
#: ../../library/exceptions.rst:888
10071007
msgid ""
10081008
"Both of these exception types wrap the exceptions in the sequence ``excs``. "
10091009
"The ``msg`` parameter must be a string. The difference between the two "
@@ -1014,7 +1014,7 @@ msgid ""
10141014
"exc:`BaseExceptionGroup`."
10151015
msgstr ""
10161016

1017-
#: ../../library/exceptions.rst:894
1017+
#: ../../library/exceptions.rst:896
10181018
msgid ""
10191019
"The :exc:`BaseExceptionGroup` constructor returns an :exc:`ExceptionGroup` "
10201020
"rather than a :exc:`BaseExceptionGroup` if all contained exceptions are :exc:"
@@ -1023,74 +1023,74 @@ msgid ""
10231023
"`TypeError` if any contained exception is not an :exc:`Exception` subclass."
10241024
msgstr ""
10251025

1026-
#: ../../library/exceptions.rst:903
1026+
#: ../../library/exceptions.rst:905
10271027
msgid "The ``msg`` argument to the constructor. This is a read-only attribute."
10281028
msgstr ""
10291029

1030-
#: ../../library/exceptions.rst:907
1030+
#: ../../library/exceptions.rst:909
10311031
msgid ""
10321032
"A tuple of the exceptions in the ``excs`` sequence given to the constructor. "
10331033
"This is a read-only attribute."
10341034
msgstr ""
10351035

1036-
#: ../../library/exceptions.rst:912
1036+
#: ../../library/exceptions.rst:914
10371037
msgid ""
10381038
"Returns an exception group that contains only the exceptions from the "
10391039
"current group that match *condition*, or ``None`` if the result is empty."
10401040
msgstr ""
10411041

1042-
#: ../../library/exceptions.rst:915
1042+
#: ../../library/exceptions.rst:917
10431043
msgid ""
10441044
"The condition can be either a function that accepts an exception and returns "
10451045
"true for those that should be in the subgroup, or it can be an exception "
10461046
"type or a tuple of exception types, which is used to check for a match using "
10471047
"the same check that is used in an ``except`` clause."
10481048
msgstr ""
10491049

1050-
#: ../../library/exceptions.rst:920
1050+
#: ../../library/exceptions.rst:922
10511051
msgid ""
10521052
"The nesting structure of the current exception is preserved in the result, "
10531053
"as are the values of its :attr:`message`, :attr:`__traceback__`, :attr:"
10541054
"`__cause__`, :attr:`__context__` and :attr:`__notes__` fields. Empty nested "
10551055
"groups are omitted from the result."
10561056
msgstr ""
10571057

1058-
#: ../../library/exceptions.rst:925
1058+
#: ../../library/exceptions.rst:927
10591059
msgid ""
10601060
"The condition is checked for all exceptions in the nested exception group, "
10611061
"including the top-level and any nested exception groups. If the condition is "
10621062
"true for such an exception group, it is included in the result in full."
10631063
msgstr ""
10641064

1065-
#: ../../library/exceptions.rst:931
1065+
#: ../../library/exceptions.rst:933
10661066
msgid ""
10671067
"Like :meth:`subgroup`, but returns the pair ``(match, rest)`` where "
10681068
"``match`` is ``subgroup(condition)`` and ``rest`` is the remaining non-"
10691069
"matching part."
10701070
msgstr ""
10711071

1072-
#: ../../library/exceptions.rst:937
1072+
#: ../../library/exceptions.rst:939
10731073
msgid ""
10741074
"Returns an exception group with the same :attr:`message`, but which wraps "
10751075
"the exceptions in ``excs``."
10761076
msgstr ""
10771077

1078-
#: ../../library/exceptions.rst:940
1078+
#: ../../library/exceptions.rst:942
10791079
msgid ""
10801080
"This method is used by :meth:`subgroup` and :meth:`split`. A subclass needs "
10811081
"to override it in order to make :meth:`subgroup` and :meth:`split` return "
10821082
"instances of the subclass rather than :exc:`ExceptionGroup`."
10831083
msgstr ""
10841084

1085-
#: ../../library/exceptions.rst:945
1085+
#: ../../library/exceptions.rst:947
10861086
msgid ""
10871087
":meth:`subgroup` and :meth:`split` copy the :attr:`__traceback__`, :attr:"
10881088
"`__cause__`, :attr:`__context__` and :attr:`__notes__` fields from the "
10891089
"original exception group to the one returned by :meth:`derive`, so these "
10901090
"fields do not need to be updated by :meth:`derive`. ::"
10911091
msgstr ""
10921092

1093-
#: ../../library/exceptions.rst:974
1093+
#: ../../library/exceptions.rst:976
10941094
msgid ""
10951095
"Note that :exc:`BaseExceptionGroup` defines :meth:`__new__`, so subclasses "
10961096
"that need a different constructor signature need to override that rather "
@@ -1099,18 +1099,18 @@ msgid ""
10991099
"from it. ::"
11001100
msgstr ""
11011101

1102-
#: ../../library/exceptions.rst:989
1102+
#: ../../library/exceptions.rst:991
11031103
msgid ""
11041104
"Like :exc:`ExceptionGroup`, any subclass of :exc:`BaseExceptionGroup` which "
11051105
"is also a subclass of :exc:`Exception` can only wrap instances of :exc:"
11061106
"`Exception`."
11071107
msgstr ""
11081108

1109-
#: ../../library/exceptions.rst:997
1109+
#: ../../library/exceptions.rst:999
11101110
msgid "Exception hierarchy"
11111111
msgstr ""
11121112

1113-
#: ../../library/exceptions.rst:999
1113+
#: ../../library/exceptions.rst:1001
11141114
msgid "The class hierarchy for built-in exceptions is:"
11151115
msgstr ""
11161116

tutorial/errors.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.11\n"
1212
"Report-Msgid-Bugs-To: \n"
13-
"POT-Creation-Date: 2022-11-06 00:20+0000\n"
13+
"POT-Creation-Date: 2023-07-06 16:53+0000\n"
1414
"PO-Revision-Date: 2022-10-24 14:54+0800\n"
1515
"Last-Translator: Steven Hsu <hsuhaochun@gmail.com>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -197,8 +197,8 @@ msgid ""
197197
msgstr ""
198198
":keyword:`try` 陳述式可以有不只一個 *except 子句*\\ ,為不同的例外指定處理"
199199
"者,而最多只有一個處理者會被執行。處理者只處理對應的 try 子句中發生的例外,而"
200-
"不會處理同一 :keyword:`!try` 陳述式裡其他處理者內的例外。一個 *except 子句*"
201-
"\\ 可以用一組括號內的 tuple 列舉多個例外,例如:\n"
200+
"不會處理同一 :keyword:`!try` 陳述式裡其他處理者內的例外。一個 *except 子句"
201+
"*\\ 可以用一組括號內的 tuple 列舉多個例外,例如:\n"
202202
"\n"
203203
"::"
204204

@@ -626,9 +626,9 @@ msgid ""
626626
"that they can be raised together. It is an exception itself, so it can be "
627627
"caught like any other exception. ::"
628628
msgstr ""
629-
"內建的 :exc:`ExceptionGroup` 會包裝一個例外實例 (exception instance) 的 "
630-
"list(串列),使得它們可以一起被引發。由於它本身就是一個例外,因此它也可以像"
631-
"任何其他例外一樣被捕獲。\n"
629+
"內建的 :exc:`ExceptionGroup` 會包裝一個例外實例 (exception instance) 的 list"
630+
"(串列),使得它們可以一起被引發。由於它本身就是一個例外,因此它也可以像任何"
631+
"其他例外一樣被捕獲。\n"
632632
"\n"
633633
"::"
634634

@@ -659,11 +659,11 @@ msgstr ""
659659
"\n"
660660
"::"
661661

662-
#: ../../tutorial/errors.rst:582
662+
#: ../../tutorial/errors.rst:584
663663
msgid "Enriching Exceptions with Notes"
664664
msgstr "用註解使例外更詳細"
665665

666-
#: ../../tutorial/errors.rst:584
666+
#: ../../tutorial/errors.rst:586
667667
msgid ""
668668
"When an exception is created in order to be raised, it is usually "
669669
"initialized with information that describes the error that has occurred. "
@@ -681,7 +681,7 @@ msgstr ""
681681
"\n"
682682
"::"
683683

684-
#: ../../tutorial/errors.rst:605
684+
#: ../../tutorial/errors.rst:607
685685
msgid ""
686686
"For example, when collecting exceptions into an exception group, we may want "
687687
"to add context information for the individual errors. In the following each "

0 commit comments

Comments
 (0)