8
8
msgstr ""
9
9
"Project-Id-Version :Python 3.11\n "
10
10
"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 "
12
12
"PO-Revision-Date :2018-05-23 16:01+0000\n "
13
13
"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
14
14
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -990,11 +990,11 @@ msgstr ""
990
990
msgid "Base class for warnings related to resource usage."
991
991
msgstr ""
992
992
993
- #: ../../library/exceptions.rst:875
993
+ #: ../../library/exceptions.rst:877
994
994
msgid "Exception groups"
995
995
msgstr ""
996
996
997
- #: ../../library/exceptions.rst:877
997
+ #: ../../library/exceptions.rst:879
998
998
msgid ""
999
999
"The following are used when it is necessary to raise multiple unrelated "
1000
1000
"exceptions. They are part of the exception hierarchy so they can be handled "
@@ -1003,7 +1003,7 @@ msgid ""
1003
1003
"based on the types of the contained exceptions."
1004
1004
msgstr ""
1005
1005
1006
- #: ../../library/exceptions.rst:886
1006
+ #: ../../library/exceptions.rst:888
1007
1007
msgid ""
1008
1008
"Both of these exception types wrap the exceptions in the sequence ``excs``. "
1009
1009
"The ``msg`` parameter must be a string. The difference between the two "
@@ -1014,7 +1014,7 @@ msgid ""
1014
1014
"exc:`BaseExceptionGroup`."
1015
1015
msgstr ""
1016
1016
1017
- #: ../../library/exceptions.rst:894
1017
+ #: ../../library/exceptions.rst:896
1018
1018
msgid ""
1019
1019
"The :exc:`BaseExceptionGroup` constructor returns an :exc:`ExceptionGroup` "
1020
1020
"rather than a :exc:`BaseExceptionGroup` if all contained exceptions are :exc:"
@@ -1023,74 +1023,74 @@ msgid ""
1023
1023
"`TypeError` if any contained exception is not an :exc:`Exception` subclass."
1024
1024
msgstr ""
1025
1025
1026
- #: ../../library/exceptions.rst:903
1026
+ #: ../../library/exceptions.rst:905
1027
1027
msgid "The ``msg`` argument to the constructor. This is a read-only attribute."
1028
1028
msgstr ""
1029
1029
1030
- #: ../../library/exceptions.rst:907
1030
+ #: ../../library/exceptions.rst:909
1031
1031
msgid ""
1032
1032
"A tuple of the exceptions in the ``excs`` sequence given to the constructor. "
1033
1033
"This is a read-only attribute."
1034
1034
msgstr ""
1035
1035
1036
- #: ../../library/exceptions.rst:912
1036
+ #: ../../library/exceptions.rst:914
1037
1037
msgid ""
1038
1038
"Returns an exception group that contains only the exceptions from the "
1039
1039
"current group that match *condition*, or ``None`` if the result is empty."
1040
1040
msgstr ""
1041
1041
1042
- #: ../../library/exceptions.rst:915
1042
+ #: ../../library/exceptions.rst:917
1043
1043
msgid ""
1044
1044
"The condition can be either a function that accepts an exception and returns "
1045
1045
"true for those that should be in the subgroup, or it can be an exception "
1046
1046
"type or a tuple of exception types, which is used to check for a match using "
1047
1047
"the same check that is used in an ``except`` clause."
1048
1048
msgstr ""
1049
1049
1050
- #: ../../library/exceptions.rst:920
1050
+ #: ../../library/exceptions.rst:922
1051
1051
msgid ""
1052
1052
"The nesting structure of the current exception is preserved in the result, "
1053
1053
"as are the values of its :attr:`message`, :attr:`__traceback__`, :attr:"
1054
1054
"`__cause__`, :attr:`__context__` and :attr:`__notes__` fields. Empty nested "
1055
1055
"groups are omitted from the result."
1056
1056
msgstr ""
1057
1057
1058
- #: ../../library/exceptions.rst:925
1058
+ #: ../../library/exceptions.rst:927
1059
1059
msgid ""
1060
1060
"The condition is checked for all exceptions in the nested exception group, "
1061
1061
"including the top-level and any nested exception groups. If the condition is "
1062
1062
"true for such an exception group, it is included in the result in full."
1063
1063
msgstr ""
1064
1064
1065
- #: ../../library/exceptions.rst:931
1065
+ #: ../../library/exceptions.rst:933
1066
1066
msgid ""
1067
1067
"Like :meth:`subgroup`, but returns the pair ``(match, rest)`` where "
1068
1068
"``match`` is ``subgroup(condition)`` and ``rest`` is the remaining non-"
1069
1069
"matching part."
1070
1070
msgstr ""
1071
1071
1072
- #: ../../library/exceptions.rst:937
1072
+ #: ../../library/exceptions.rst:939
1073
1073
msgid ""
1074
1074
"Returns an exception group with the same :attr:`message`, but which wraps "
1075
1075
"the exceptions in ``excs``."
1076
1076
msgstr ""
1077
1077
1078
- #: ../../library/exceptions.rst:940
1078
+ #: ../../library/exceptions.rst:942
1079
1079
msgid ""
1080
1080
"This method is used by :meth:`subgroup` and :meth:`split`. A subclass needs "
1081
1081
"to override it in order to make :meth:`subgroup` and :meth:`split` return "
1082
1082
"instances of the subclass rather than :exc:`ExceptionGroup`."
1083
1083
msgstr ""
1084
1084
1085
- #: ../../library/exceptions.rst:945
1085
+ #: ../../library/exceptions.rst:947
1086
1086
msgid ""
1087
1087
":meth:`subgroup` and :meth:`split` copy the :attr:`__traceback__`, :attr:"
1088
1088
"`__cause__`, :attr:`__context__` and :attr:`__notes__` fields from the "
1089
1089
"original exception group to the one returned by :meth:`derive`, so these "
1090
1090
"fields do not need to be updated by :meth:`derive`. ::"
1091
1091
msgstr ""
1092
1092
1093
- #: ../../library/exceptions.rst:974
1093
+ #: ../../library/exceptions.rst:976
1094
1094
msgid ""
1095
1095
"Note that :exc:`BaseExceptionGroup` defines :meth:`__new__`, so subclasses "
1096
1096
"that need a different constructor signature need to override that rather "
@@ -1099,18 +1099,18 @@ msgid ""
1099
1099
"from it. ::"
1100
1100
msgstr ""
1101
1101
1102
- #: ../../library/exceptions.rst:989
1102
+ #: ../../library/exceptions.rst:991
1103
1103
msgid ""
1104
1104
"Like :exc:`ExceptionGroup`, any subclass of :exc:`BaseExceptionGroup` which "
1105
1105
"is also a subclass of :exc:`Exception` can only wrap instances of :exc:"
1106
1106
"`Exception`."
1107
1107
msgstr ""
1108
1108
1109
- #: ../../library/exceptions.rst:997
1109
+ #: ../../library/exceptions.rst:999
1110
1110
msgid "Exception hierarchy"
1111
1111
msgstr ""
1112
1112
1113
- #: ../../library/exceptions.rst:999
1113
+ #: ../../library/exceptions.rst:1001
1114
1114
msgid "The class hierarchy for built-in exceptions is:"
1115
1115
msgstr ""
1116
1116