Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 537bc2a

Browse files
[po] auto sync
1 parent 36069e8 commit 537bc2a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

c-api/exceptions.po

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ msgid ""
175175
"``'utf-8``'."
176176
msgstr ""
177177
"这是设置错误指示器最常用的方法。第一个参数指定异常类型;它通常是标准异常之一,e.g. "
178-
":c:data:`PyExc_RuntimeError`。你不务要增加它的引用计数。第二个参数是错误信息,它解码自 ``'utf-8'``。"
178+
":c:data:`PyExc_RuntimeError`。你不需要增加它的引用计数。第二个参数是错误信息,它解码自 ``'utf-8'``。"
179179

180180
#: ../../c-api/exceptions.rst:108
181181
msgid ""
@@ -199,6 +199,7 @@ msgid ""
199199
"Same as :c:func:`PyErr_Format`, but taking a :c:type:`va_list` argument "
200200
"rather than a variable number of arguments."
201201
msgstr ""
202+
"和 :c:func:`PyErr_Format` 相同,但它接受一个 :c:type:`va_list` 类型的参数而不是可变数量的参数集。"
202203

203204
#: ../../c-api/exceptions.rst:131
204205
msgid "This is a shorthand for ``PyErr_SetObject(type, Py_None)``."
@@ -210,13 +211,17 @@ msgid ""
210211
" *message* indicates that a built-in operation was invoked with an illegal "
211212
"argument. It is mostly for internal use."
212213
msgstr ""
214+
"这是 ``PyErr_SetString(PyExc_TypeError, message)`` 的简写,其中 *message* "
215+
"指出使用了非法参数调用内置操作。它主要用于内部使用。"
213216

214217
#: ../../c-api/exceptions.rst:143
215218
msgid ""
216219
"This is a shorthand for ``PyErr_SetNone(PyExc_MemoryError)``; it returns "
217220
"``NULL`` so an object allocation function can write ``return "
218221
"PyErr_NoMemory();`` when it runs out of memory."
219222
msgstr ""
223+
"这是 ``PyErr_SetNone(PyExc_MemoryError)`` 的简写;它返回 ``NULL`` ,以便当内存耗尽时,对象分配函数可以写"
224+
" ``return PyErr_NoMemory();`` 。"
220225

221226
#: ../../c-api/exceptions.rst:152
222227
msgid ""

0 commit comments

Comments
 (0)