@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.12\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-05-11 19:07 +0000\n "
14+ "POT-Creation-Date : 2024-06-07 14:48 +0000\n "
1515"PO-Revision-Date : 2024-05-11 00:33+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1279,14 +1279,13 @@ msgstr "返回一个具有相同 :attr:`message` 的异常组,但会将异常
12791279
12801280#: ../../library/exceptions.rst:970
12811281msgid ""
1282- "This method is used by :meth:`subgroup` and :meth:`split`. A subclass needs "
1283- "to override it in order to make :meth:`subgroup` and :meth:`split` return "
1282+ "This method is used by :meth:`subgroup` and :meth:`split`, which are used in"
1283+ " various contexts to break up an exception group. A subclass needs to "
1284+ "override it in order to make :meth:`subgroup` and :meth:`split` return "
12841285"instances of the subclass rather than :exc:`ExceptionGroup`."
12851286msgstr ""
1286- "此方法是由 :meth:`subgroup` 和 :meth:`split` 使用的。 子类需要重写它以便让 :meth:`subgroup` 和 "
1287- ":meth:`split` 返回相应子类的实例而不是 :exc:`ExceptionGroup`。"
12881287
1289- #: ../../library/exceptions.rst:975
1288+ #: ../../library/exceptions.rst:976
12901289msgid ""
12911290":meth:`subgroup` and :meth:`split` copy the "
12921291":attr:`~BaseException.__traceback__`, :attr:`~BaseException.__cause__`, "
@@ -1299,7 +1298,7 @@ msgstr ""
12991298":attr:`~BaseException.__context__` 和 :attr:`~BaseException.__notes__` 字段到 "
13001299":meth:`derive` 所返回的异常组,这样这些字段就不需要被 :meth:`derive` 更新。"
13011300
1302- #: ../../library/exceptions.rst:1008
1301+ #: ../../library/exceptions.rst:1009
13031302msgid ""
13041303"Note that :exc:`BaseExceptionGroup` defines :meth:`~object.__new__`, so "
13051304"subclasses that need a different constructor signature need to override that"
@@ -1311,7 +1310,7 @@ msgstr ""
13111310":meth:`~object.__new__`,因此需要不同构造器签名的子类必须重写该方法而不是 :meth:`~object.__init__`。 "
13121311"例如,下面定义了一个接受 exit_code 并根据它来构造分组消息的异常组子类。 ::"
13131312
1314- #: ../../library/exceptions.rst:1023
1313+ #: ../../library/exceptions.rst:1024
13151314msgid ""
13161315"Like :exc:`ExceptionGroup`, any subclass of :exc:`BaseExceptionGroup` which "
13171316"is also a subclass of :exc:`Exception` can only wrap instances of "
@@ -1320,11 +1319,11 @@ msgstr ""
13201319"类似于 :exc:`ExceptionGroup`,任何 :exc:`BaseExceptionGroup` 的子类也是 "
13211320":exc:`Exception` 的子类,只能包装 :exc:`Exception` 的实例。"
13221321
1323- #: ../../library/exceptions.rst:1031
1322+ #: ../../library/exceptions.rst:1032
13241323msgid "Exception hierarchy"
13251324msgstr "异常层次结构"
13261325
1327- #: ../../library/exceptions.rst:1033
1326+ #: ../../library/exceptions.rst:1034
13281327msgid "The class hierarchy for built-in exceptions is:"
13291328msgstr "内置异常的类层级结构如下:"
13301329
0 commit comments