33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
6+ # Translators:
7+ # ww song <[email protected] >, 20188+ # SKY H. <[email protected] >, 20189+ #
610#, fuzzy
711msgid ""
812msgstr ""
913"Project-Id-Version : Python 3.7\n "
1014"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-06-30 05:56 +0900\n "
12- "PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE \n "
15+ "POT-Creation-Date : 2018-12-19 10:06 +0900\n "
16+ "PO-Revision-Date : 2017-02-16 17:35+0000 \n "
1317"
Last-Translator :
SKY H. <[email protected] >, 2018\n "
1418"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1519"MIME-Version : 1.0\n "
@@ -116,20 +120,35 @@ msgid ""
116120msgstr ""
117121"返回字典 *p* 中 *key* 作为键的对象。如果键 *key* 不存在则返回 *NULL* ,但可以使用 *without* 设置例外。"
118122
119- #: ../../c-api/dict.rst:101
123+ #: ../../c-api/dict.rst:98
124+ msgid ""
125+ "Note that exceptions which occur while calling :meth:`__hash__` and "
126+ ":meth:`__eq__` methods will get suppressed. To get error reporting use "
127+ ":c:func:`PyDict_GetItemWithError()` instead."
128+ msgstr ""
129+
130+ #: ../../c-api/dict.rst:105
120131msgid ""
121132"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
122133"Return *NULL* **with** an exception set if an exception occurred. Return "
123134"*NULL* **without** an exception set if the key wasn't present."
124135msgstr ""
125136
126- #: ../../c-api/dict.rst:109
137+ #: ../../c-api/dict.rst:113
127138msgid ""
128139"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a "
129140":c:type:`const char\\ *`, rather than a :c:type:`PyObject\\ *`."
130141msgstr ""
131142
132- #: ../../c-api/dict.rst:115
143+ #: ../../c-api/dict.rst:116
144+ msgid ""
145+ "Note that exceptions which occur while calling :meth:`__hash__` and "
146+ ":meth:`__eq__` methods and creating a temporary string object will get "
147+ "suppressed. To get error reporting use :c:func:`PyDict_GetItemWithError()` "
148+ "instead."
149+ msgstr ""
150+
151+ #: ../../c-api/dict.rst:124
133152msgid ""
134153"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
135154"it returns the value corresponding to *key* from the dictionary *p*. If the"
@@ -139,30 +158,30 @@ msgid ""
139158"the insertion."
140159msgstr ""
141160
142- #: ../../c-api/dict.rst:125
161+ #: ../../c-api/dict.rst:134
143162msgid ""
144163"Return a :c:type:`PyListObject` containing all the items from the "
145164"dictionary."
146165msgstr ""
147166
148- #: ../../c-api/dict.rst:130
167+ #: ../../c-api/dict.rst:139
149168msgid ""
150169"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
151170msgstr ""
152171
153- #: ../../c-api/dict.rst:135
172+ #: ../../c-api/dict.rst:144
154173msgid ""
155174"Return a :c:type:`PyListObject` containing all the values from the "
156175"dictionary *p*."
157176msgstr ""
158177
159- #: ../../c-api/dict.rst:143
178+ #: ../../c-api/dict.rst:152
160179msgid ""
161180"Return the number of items in the dictionary. This is equivalent to "
162181"``len(p)`` on a dictionary."
163182msgstr ""
164183
165- #: ../../c-api/dict.rst:149
184+ #: ../../c-api/dict.rst:158
166185msgid ""
167186"Iterate over all key-value pairs in the dictionary *p*. The "
168187":c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` "
@@ -176,18 +195,18 @@ msgid ""
176195"since the structure is sparse, the offsets are not consecutive."
177196msgstr ""
178197
179- #: ../../c-api/dict.rst:160
198+ #: ../../c-api/dict.rst:169
180199msgid "For example::"
181200msgstr "例如::"
182201
183- #: ../../c-api/dict.rst:170
202+ #: ../../c-api/dict.rst:179
184203msgid ""
185204"The dictionary *p* should not be mutated during iteration. It is safe to "
186205"modify the values of the keys as you iterate over the dictionary, but only "
187206"so long as the set of keys does not change. For example::"
188207msgstr ""
189208
190- #: ../../c-api/dict.rst:195
209+ #: ../../c-api/dict.rst:204
191210msgid ""
192211"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
193212"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -197,7 +216,7 @@ msgid ""
197216" or ``-1`` if an exception was raised."
198217msgstr ""
199218
200- #: ../../c-api/dict.rst:205
219+ #: ../../c-api/dict.rst:214
201220msgid ""
202221"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to "
203222"``a.update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall "
@@ -206,7 +225,7 @@ msgid ""
206225" exception was raised."
207226msgstr ""
208227
209- #: ../../c-api/dict.rst:214
228+ #: ../../c-api/dict.rst:223
210229msgid ""
211230"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
212231"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -216,6 +235,6 @@ msgid ""
216235"value)::"
217236msgstr ""
218237
219- #: ../../c-api/dict.rst:229
238+ #: ../../c-api/dict.rst:238
220239msgid "Clear the free list. Return the total number of freed items."
221240msgstr ""
0 commit comments