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

Skip to content

Commit 97b9686

Browse files
[po] auto sync
1 parent 8b3e6f8 commit 97b9686

3 files changed

Lines changed: 5772 additions & 5759 deletions

File tree

c-api/dict.po

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.8\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2020-08-20 14:53+0000\n"
18+
"POT-Creation-Date: 2020-10-03 15:16+0000\n"
1919
"PO-Revision-Date: 2020-05-30 11:48+0000\n"
2020
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
2121
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -106,26 +106,25 @@ msgstr ""
106106
#: ../../c-api/dict.rst:83
107107
msgid ""
108108
"Remove the entry in dictionary *p* with key *key*. *key* must be hashable; "
109-
"if it isn't, :exc:`TypeError` is raised. Return ``0`` on success or ``-1`` "
110-
"on failure."
109+
"if it isn't, :exc:`TypeError` is raised. If *key* is not in the dictionary, "
110+
":exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on failure."
111111
msgstr ""
112-
"使用键 *key* 删除字典 *p* 中的条目。 *key* 必须是可哈希的;如果不是,则抛出 :exc:`TypeError` 异常。成功时返回 "
113-
"``0`` ,失败时返回 ``-1`` 。"
114112

115-
#: ../../c-api/dict.rst:90
113+
#: ../../c-api/dict.rst:91
116114
msgid ""
117115
"Remove the entry in dictionary *p* which has a key specified by the string "
118-
"*key*. Return ``0`` on success or ``-1`` on failure."
119-
msgstr "删除字典 *p* 中由字符串 *key* 作为键的条目。成功时返回 ``0`` ,失败时返回 ``-1``。"
116+
"*key*. If *key* is not in the dictionary, :exc:`KeyError` is raised. Return "
117+
"``0`` on success or ``-1`` on failure."
118+
msgstr ""
120119

121-
#: ../../c-api/dict.rst:96
120+
#: ../../c-api/dict.rst:98
122121
msgid ""
123122
"Return the object from dictionary *p* which has a key *key*. Return "
124123
"``NULL`` if the key *key* is not present, but *without* setting an "
125124
"exception."
126125
msgstr "从字典 *p* 中返回以 *key* 为键的对象。 如果键名 *key* 不存在但 *没有* 设置一个异常则返回 ``NULL``。"
127126

128-
#: ../../c-api/dict.rst:99
127+
#: ../../c-api/dict.rst:101
129128
msgid ""
130129
"Note that exceptions which occur while calling :meth:`__hash__` and "
131130
":meth:`__eq__` methods will get suppressed. To get error reporting use "
@@ -134,7 +133,7 @@ msgstr ""
134133
"需要注意的是,调用 :meth:`__hash__` 和 :meth:`__eq__` 方法产生的异常不会被抛出。改用 "
135134
":c:func:`PyDict_GetItemWithError()` 获得错误报告。"
136135

137-
#: ../../c-api/dict.rst:106
136+
#: ../../c-api/dict.rst:108
138137
msgid ""
139138
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
140139
"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -143,15 +142,15 @@ msgstr ""
143142
":c:func:`PyDict_GetItem` 的变种,它不会屏蔽异常。 当异常发生时将返回 ``NULL`` **并且** 设置一个异常。 "
144143
"如果键不存在则返回 ``NULL`` **并且不会** 设置一个异常。"
145144

146-
#: ../../c-api/dict.rst:114
145+
#: ../../c-api/dict.rst:116
147146
msgid ""
148147
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a "
149148
":c:type:`const char*`, rather than a :c:type:`PyObject*`."
150149
msgstr ""
151150
"这与 :c:func:`PyDict_GetItem` 一样,但是 *key* 被指定为 :c:type:`const char*`,而不是 "
152151
":c:type:`PyObject*`。"
153152

154-
#: ../../c-api/dict.rst:117
153+
#: ../../c-api/dict.rst:119
155154
msgid ""
156155
"Note that exceptions which occur while calling :meth:`__hash__` and "
157156
":meth:`__eq__` methods and creating a temporary string object will get "
@@ -161,7 +160,7 @@ msgstr ""
161160
"需要注意的是,调用 :meth:`__hash__` 、 :meth:`__eq__` 方法和创建一个临时的字符串对象时产生的异常不会被抛出。改用 "
162161
":c:func:`PyDict_GetItemWithError()` 获得错误报告。"
163162

164-
#: ../../c-api/dict.rst:125
163+
#: ../../c-api/dict.rst:127
165164
msgid ""
166165
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
167166
"it returns the value corresponding to *key* from the dictionary *p*. If the"
@@ -174,30 +173,30 @@ msgstr ""
174173
"里面对应的值。如果键不存在,它会和值 *defaultobj* 一起插入并返回 *defaultobj* 。这个函数只计算 *key* "
175174
"的哈希函数一次,而不是在查找和插入时分别计算它。"
176175

177-
#: ../../c-api/dict.rst:135
176+
#: ../../c-api/dict.rst:137
178177
msgid ""
179178
"Return a :c:type:`PyListObject` containing all the items from the "
180179
"dictionary."
181180
msgstr "返回一个包含字典中所有键值项的 :c:type:`PyListObject`。"
182181

183-
#: ../../c-api/dict.rst:140
182+
#: ../../c-api/dict.rst:142
184183
msgid ""
185184
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
186185
msgstr "返回一个包含字典中所有键(keys)的 :c:type:`PyListObject`。"
187186

188-
#: ../../c-api/dict.rst:145
187+
#: ../../c-api/dict.rst:147
189188
msgid ""
190189
"Return a :c:type:`PyListObject` containing all the values from the "
191190
"dictionary *p*."
192191
msgstr "返回一个包含字典中所有值(values)的 :c:type:`PyListObject`。"
193192

194-
#: ../../c-api/dict.rst:153
193+
#: ../../c-api/dict.rst:155
195194
msgid ""
196195
"Return the number of items in the dictionary. This is equivalent to "
197196
"``len(p)`` on a dictionary."
198197
msgstr "返回字典中项目数,等价于对字典 *p* 使用 ``len(p)``。"
199198

200-
#: ../../c-api/dict.rst:159
199+
#: ../../c-api/dict.rst:161
201200
msgid ""
202201
"Iterate over all key-value pairs in the dictionary *p*. The "
203202
":c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` "
@@ -215,18 +214,18 @@ msgstr ""
215214
":c:type:`PyObject*` 变量,它们将分别使用每个键和值来填充,或者也可以为 ``NULL``。 通过它们返回的任何引用都是暂借的。 "
216215
"*ppos* 在迭代期间不应被更改。 它的值表示内部字典结构中的偏移量,并且由于结构是稀疏的,因此偏移量并不连续。"
217216

218-
#: ../../c-api/dict.rst:170
217+
#: ../../c-api/dict.rst:172
219218
msgid "For example::"
220219
msgstr "例如 ::"
221220

222-
#: ../../c-api/dict.rst:180
221+
#: ../../c-api/dict.rst:182
223222
msgid ""
224223
"The dictionary *p* should not be mutated during iteration. It is safe to "
225224
"modify the values of the keys as you iterate over the dictionary, but only "
226225
"so long as the set of keys does not change. For example::"
227226
msgstr "字典 *p* 不应该在遍历期间发生改变。在遍历字典时,改变键中的值是安全的,但仅限于键的集合不发生改变。例如::"
228227

229-
#: ../../c-api/dict.rst:205
228+
#: ../../c-api/dict.rst:207
230229
msgid ""
231230
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
232231
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -239,7 +238,7 @@ msgstr ""
239238
":c:func:`PyObject_GetItem` 的对象。 如果 *override* 为真值,则如果在 *b* 中找到相同的键则 *a* "
240239
"中已存在的相应键值对将被替换,否则如果在 *a* 中没有相同的键则只是添加键值对。 当成功时返回 ``0`` 或者当引发异常时返回 ``-1``。"
241240

242-
#: ../../c-api/dict.rst:215
241+
#: ../../c-api/dict.rst:217
243242
msgid ""
244243
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to "
245244
"``a.update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall "
@@ -251,7 +250,7 @@ msgstr ""
251250
":c:func:`PyDict_Update` 在第二个参数没有 \"keys\" 属性时不会回退到迭代键值对的序列。 当成功时返回 ``0`` "
252251
"或者当引发异常时返回 ``-1``。"
253252

254-
#: ../../c-api/dict.rst:224
253+
#: ../../c-api/dict.rst:226
255254
msgid ""
256255
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
257256
"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -264,6 +263,6 @@ msgstr ""
264263
"*override* 真值则最后出现的键胜出。 当成功时返回 ``0`` 或者当引发异常时返回 ``-1``。 等价的 Python "
265264
"代码(返回值除外)::"
266265

267-
#: ../../c-api/dict.rst:239
266+
#: ../../c-api/dict.rst:241
268267
msgid "Clear the free list. Return the total number of freed items."
269268
msgstr "清空释放列表。 返回所释放的条目数。"

0 commit comments

Comments
 (0)