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

Skip to content

Commit 6148b57

Browse files
[po] auto sync
1 parent c5f8170 commit 6148b57

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

c-api/dict.po

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

253-
#: ../../c-api/dict.rst:224
252+
#: ../../c-api/dict.rst:226
254253
msgid ""
255254
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
256255
"*seq2* must be an iterable object producing iterable objects of length 2, "

library/typing.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ msgid ""
1919
msgstr ""
2020
"Project-Id-Version: Python 3.9\n"
2121
"Report-Msgid-Bugs-To: \n"
22-
"POT-Creation-Date: 2020-09-28 04:12+0000\n"
22+
"POT-Creation-Date: 2020-10-03 04:15+0000\n"
2323
"PO-Revision-Date: 2017-02-16 23:32+0000\n"
2424
"Last-Translator: MuSheng Chen <[email protected]>, 2020\n"
2525
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -868,7 +868,8 @@ msgid ""
868868
"Such a protocol can be used with :func:`isinstance` and :func:`issubclass`. "
869869
"This raises :exc:`TypeError` when applied to a non-protocol class. This "
870870
"allows a simple-minded structural check, very similar to \"one trick "
871-
"ponies\" in :mod:`collections.abc` such as :class:`Iterable`. For example::"
871+
"ponies\" in :mod:`collections.abc` such as "
872+
":class:`~collections.abc.Iterable`. For example::"
872873
msgstr ""
873874

874875
#: ../../library/typing.rst:916

0 commit comments

Comments
 (0)