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

Skip to content

Commit c4be8b4

Browse files
[po] auto sync
1 parent af25503 commit c4be8b4

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

c-api/set.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,17 @@ msgid ""
177177
"grow. Raise a :exc:`SystemError` if *set* is not an instance of "
178178
":class:`set` or its subtype."
179179
msgstr ""
180+
"添加 *key* 到一个 :class:`set` 实例。 也可用于 :class:`frozenset` 实例(类似于 "
181+
":c:func:`PyTuple_SetItem`,它可被用来为全新冻结集合在公开给其他代码之前填充全新的值)。 成功时返回 ``0``,失败时返回 "
182+
"``-1``。 如果 *key* 为不可哈希对象则会引发 :exc:`TypeError`。 如果没有增长空间则会引发 "
183+
":exc:`MemoryError`。 如果 *set* 不是 :class:`set` 或其子类型的实例则会引发 "
184+
":exc:`SystemError`。"
180185

181186
#: ../../c-api/set.rst:135
182187
msgid ""
183188
"The following functions are available for instances of :class:`set` or its "
184189
"subtypes but not for instances of :class:`frozenset` or its subtypes."
185-
msgstr ""
190+
msgstr "下列函数适用于 :class:`set` 或其子类型的实例,但不可用于 :class:`frozenset` 或其子类型的实例。"
186191

187192
#: ../../c-api/set.rst:141
188193
msgid ""
@@ -194,6 +199,10 @@ msgid ""
194199
":exc:`PyExc_SystemError` if *set* is not an instance of :class:`set` or its "
195200
"subtype."
196201
msgstr ""
202+
"如果找到并移除返回 ``1``,如果未找到(无操作)返回 ``0``,如果遇到错误则返回 ``-1``。 对于不存在的键不会引发 "
203+
":exc:`KeyError`。 如果 *key* 为不可哈希对象则会引发 :exc:`TypeError`。 不同于 Python "
204+
":meth:`~set.discard` 方法,此函数不会自动将不可哈希的集合转换为临时的冻结集合。 如果 *set* 不是 :class:`set` "
205+
"或其子类型的实例则会引发 :exc:`PyExc_SystemError`。"
197206

198207
#: ../../c-api/set.rst:151
199208
msgid ""
@@ -202,6 +211,8 @@ msgid ""
202211
"if the set is empty. Raise a :exc:`SystemError` if *set* is not an instance "
203212
"of :class:`set` or its subtype."
204213
msgstr ""
214+
"返回 *set* 中任意对象的新引用,并从 *set* 中移除该对象。 失败时返回 ``NULL``。 如果集合为空则会引发 "
215+
":exc:`KeyError`。 如果 *set* 不是 :class:`set` 或其子类型的实例则会引发 :exc:`SystemError`。"
205216

206217
#: ../../c-api/set.rst:159
207218
msgid "Empty an existing set of all elements."

0 commit comments

Comments
 (0)