@@ -263,13 +263,13 @@ msgstr "异常处理程序不仅处理 try 子句中遇到的异常,还处理
263263
264264#: ../../tutorial/errors.rst:237
265265msgid "Raising Exceptions"
266- msgstr "抛出异常 "
266+ msgstr "触发异常 "
267267
268268#: ../../tutorial/errors.rst:239
269269msgid ""
270270"The :keyword:`raise` statement allows the programmer to force a specified "
271271"exception to occur. For example::"
272- msgstr ":keyword:`raise` 语句允许程序员强制发生指定的异常 。例如:: "
272+ msgstr ":keyword:`raise` 语句支持强制触发指定的异常 。例如: "
273273
274274#: ../../tutorial/errors.rst:247
275275msgid ""
@@ -279,8 +279,8 @@ msgid ""
279279"will be implicitly instantiated by calling its constructor with no "
280280"arguments::"
281281msgstr ""
282- ":keyword:`raise` 唯一的参数就是要抛出的异常。这个参数必须是一个异常实例或者是一个异常类 (派生自 :class:`Exception` "
283- "的类)。如果传递的是一个异常类,它将通过调用没有参数的构造函数来隐式实例化:: "
282+ ":keyword:`raise` 唯一的参数就是要触发的异常。这个参数必须是异常实例或异常类 (派生自 :class:`Exception` "
283+ "的类)。如果传递的是异常类,将通过调用没有参数的构造函数来隐式实例化: "
284284
285285#: ../../tutorial/errors.rst:254
286286msgid ""
@@ -301,21 +301,21 @@ msgstr ":keyword:`raise` 语句允许可选的 :keyword:`from` 子句,它启
301301
302302#: ../../tutorial/errors.rst:281
303303msgid "This can be useful when you are transforming exceptions. For example::"
304- msgstr "这在你要转换异常时很有用。 例如:: "
304+ msgstr "这在要转换异常时很有用。例如: "
305305
306306#: ../../tutorial/errors.rst:302
307307msgid ""
308308"Exception chaining happens automatically when an exception is raised inside "
309309"an :keyword:`except` or :keyword:`finally` section. Exception chaining can "
310310"be disabled by using ``from None`` idiom:"
311311msgstr ""
312- "当在 :keyword:`except` 或 :keyword:`finally` 子句中引发异常时会自动产生异常链。 异常链可通过使用 ``from "
313- "None`` 的形式来禁用: "
312+ "异常链在 :keyword:`except` 或 :keyword:`finally` 子句触发异常时自动生成。禁用异常链可使用 ``from "
313+ "None`` 习语: "
314314
315315#: ../../tutorial/errors.rst:315
316316msgid ""
317317"For more information about chaining mechanics, see :ref:`bltin-exceptions`."
318- msgstr "有关链机制的更多信息,请参阅 :ref:`bltin-exceptions`。"
318+ msgstr "异常链机制详见 :ref:`bltin-exceptions`。"
319319
320320#: ../../tutorial/errors.rst:321
321321msgid "User-defined Exceptions"
0 commit comments